Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

Commit

Permalink
chore: userのcompletedを消すスクリプトを用意
Browse files Browse the repository at this point in the history
  • Loading branch information
yupix committed Sep 29, 2023
1 parent c89dd22 commit 33c95d1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"worker": "node ./built/migration/worker.js",
"bull-board": "node ./built/migration/bullDashboard.js",
"next": "node ./built/migration/migrateAyuskeyNext.js",
"clean-com": "node ./built/migration/clean-complete.js",
"webpack": "webpack",
"dev": "echo \"**コミットをしたら再起動が必要!!/Need to restart after a commit!!**\" && run-p watch-webpack gulpstart",
"dev:clean": "run-s clean build dev",
Expand Down
12 changes: 12 additions & 0 deletions src/migration/clean-complete.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { logger } from "./common";
import { userQueue } from "./jobqueue";

async function main() {
await userQueue.clean(0, 'completed')
logger.succ(`UserQueueのcompletedを削除しました`);
}

main().catch((e) => {
console.warn(e);
process.exit(1);
});

0 comments on commit 33c95d1

Please sign in to comment.