use unix timestamp for inv created & usedBy

usedBy is still stored as a string in invites.json to cope with existing
invites with times stored formatted. knz/strtime requires cgo for
strptime, so it has been replaced with the native itchyny/timefmt-go.
This commit is contained in:
Harvey Tindall
2021-04-06 21:25:44 +01:00
parent 6ec2186bdf
commit 3f8414c70a
9 changed files with 77 additions and 60 deletions
+2 -2
View File
@@ -104,8 +104,8 @@ interface Invite {
expiresIn?: string;
remainingUses?: string;
email?: string;
usedBy?: string[][];
created?: string;
usedBy?: { [name: string]: number };
created?: number;
notifyExpiry?: boolean;
notifyCreation?: boolean;
profile?: string;