lands dangerous delete user script

This commit is contained in:
jimmylee 2020-12-07 22:59:46 -08:00
parent 78c64f1793
commit 262c70e0db

View File

@ -3,6 +3,8 @@ import knex from "knex";
import * as Data from "~/node_common/data";
import { deleteUser } from "~/pages/api/users/delete";
const envConfig = configs["development"];
const db = knex(envConfig);
@ -18,6 +20,7 @@ const run = async () => {
if (user) {
console.log(`deleting ${user.username}`);
await deleteUser(user);
}
console.log(`FINISHED: delete-user.js`);