diff --git a/main.go b/main.go index 0f5e295..8f86095 100644 --- a/main.go +++ b/main.go @@ -1616,6 +1616,9 @@ const adminHTML = ` const delResp = await fetch('/api/users/' + username, { method: 'DELETE' }); if (!delResp.ok) { alert('Failed to delete user for re-creation'); return; } + // Wait for SQLite to release the lock before recreating + await new Promise(r => setTimeout(r, 1500)); + // 2. Recreate with new data const body = JSON.stringify({ users: [{