mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-30 15:17:43 -05:00
Blank team remove script + prevent Closes #1712
This commit is contained in:
7
scripts/delete-invalid-team.ts
Normal file
7
scripts/delete-invalid-team.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/* eslint-disable no-console */
|
||||
import "dotenv/config";
|
||||
import { sql } from "~/db/sql";
|
||||
|
||||
sql.prepare(`delete from "AllTeam" where "customUrl" = ''`).run();
|
||||
|
||||
console.log(`Done deleting empty team`);
|
||||
Reference in New Issue
Block a user