fix: Truncation of some tables that were wrongly preserved

This commit is contained in:
gauvainboiche
2026-04-02 22:37:06 +02:00
parent d8f914bcfb
commit bfdc836275
3 changed files with 13 additions and 20 deletions
+5
View File
@@ -151,4 +151,9 @@ export async function resetAllUserActions(actionsRemaining, quotaResetAt) {
quota_reset_at = $2`,
[actionsRemaining, quotaResetAt]
);
}
/** Removes all rows from user_action_quota (used on world-seed wipeout). */
export async function truncateUserActionQuota() {
await usersPool.query(`TRUNCATE user_action_quota`);
}