Add (working) script to remove bad custom urls

This commit is contained in:
Kalle
2022-10-15 12:02:52 +03:00
parent 1a8ede563e
commit 9bb7de7dba
2 changed files with 10 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
/* eslint-disable no-console */
import "dotenv/config";
import { sql } from "~/db/sql";
sql
.prepare(`update "User" set "customUrl" = NULL where "customUrl" like '%/%'`)
.run();
console.log("Done");