fix: correction mineures

This commit is contained in:
ElPouki committed 2026-09-15 15:30:20 +02:00
1 parent 09eb1fa3aa
commit 6a3cb21adf
4 files changed
+18 -9

No files matched your search

+1 -1
View File
@@ -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,
}