From 02c69152713b9b1823c58e1405d31de6c618feef Mon Sep 17 00:00:00 2001 From: 728 Date: Fri, 3 Nov 2023 11:09:43 +0800 Subject: [PATCH] typ #45 --- is.ts | 2 +- typ.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 },