mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
fix type errors hopefully *fingerscrossed*
This commit is contained in:
@@ -34,7 +34,8 @@ const BillSchema = new mongoose.Schema<BillDocument>(
|
||||
|
||||
return v <= bill.milageEnd
|
||||
},
|
||||
message: (props) => `${props.value} is bigger than milageEnd!`,
|
||||
message: (props: { value: Number }) =>
|
||||
`${props.value} is bigger than milageEnd!`,
|
||||
},
|
||||
},
|
||||
milageEnd: {
|
||||
@@ -47,7 +48,8 @@ const BillSchema = new mongoose.Schema<BillDocument>(
|
||||
|
||||
return v >= bill.milageStart
|
||||
},
|
||||
message: (props) => `${props.value} is smaller than milageStart!`,
|
||||
message: (props: { value: Number }) =>
|
||||
`${props.value} is smaller than milageStart!`,
|
||||
},
|
||||
},
|
||||
tarif: {
|
||||
|
||||
Reference in New Issue
Block a user