This commit is contained in:
728
2023-11-03 11:09:43 +08:00
parent e8080a51f6
commit 02c6915271
2 changed files with 2 additions and 2 deletions

2
is.ts
View File

@ -81,7 +81,7 @@ export function is_aug(
return Object.keys(aug).length == 4
&& is_msg(aug.msg, len_msg_rec)
&& is_lim(aug.amt, lim_amt, -lim_amt)
&& is_utc(aug.utc) && is_id(aug.sec)
&& is_utc(aug.utc) && is_id(aug.usr)
}
export function is_cdt(
cdt: Cdt,

2
typ.ts
View File

@ -28,7 +28,7 @@ export type Rec = {
}
export type Cdt = Rec & {
utc: { eft: number, exp: number, agr: number },
aug?: { msg: string, amt: number, utc: number, sec: Usr["_id"] }[],
aug?: { msg: string, amt: number, utc: number, usr: Usr["_id"] }[],
}
export type Dbt = Rec & {
rev?: { msg: string, rev: 1 | 2 | 3 | 4 | 5, utc: number },