mirror of
https://github.com/filecoin-project/slate.git
synced 2024-09-11 22:07:08 +03:00
lands dangerous delete user script
This commit is contained in:
parent
78c64f1793
commit
262c70e0db
@ -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`);
|
||||
|
Loading…
Reference in New Issue
Block a user