diff --git a/is.ts b/is.ts index 855bda9..e0c39da 100644 --- a/is.ts +++ b/is.ts @@ -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, diff --git a/typ.ts b/typ.ts index 22ff185..8b23a5b 100644 --- a/typ.ts +++ b/typ.ts @@ -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 },