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 -2
View File
@@ -431,9 +431,8 @@ async function submitInviteModal() {
const m = inviteModal.value
m.error = null; m.loading = true
const body: Record<string, any> = {}
const body: Record<string, any> = { maxUses: m.maxUses || null }
if (m.note) body.note = m.note
if (m.maxUses) body.maxUses = m.maxUses
if (m.expiresInHours) body.expiresInHours = m.expiresInHours
const res = await fetch('/api/invites', { method: 'POST', headers: { 'Content-Type': 'application/json' }, credentials: 'include', body: JSON.stringify(body) })