fix: correction mineures
This commit is contained in:
1 parent
09eb1fa3aa
commit
6a3cb21adf
4 files changed
+18
-9
No files matched your search
+1
-1
@@ -49,7 +49,7 @@ export function createInvite(opts: {
|
||||
expiresAt: opts.expiresInHours
|
||||
? new Date(Date.now() + opts.expiresInHours * 3_600_000).toISOString()
|
||||
: null,
|
||||
maxUses : opts.maxUses ?? 1,
|
||||
maxUses : opts.maxUses === undefined ? 1 : opts.maxUses, // null = illimité
|
||||
uses : 0,
|
||||
note : opts.note,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user