Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DASH-1254. Change limit in freeId migrations. Fix delete user query. #2002

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions server/src/migrations/20250108142232-user-free-id.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = {
},
);

const limit = 500;
const limit = 20000;
let finish = false;
while (!finish) {
const users = await QI.sequelize.query(
Expand Down Expand Up @@ -55,7 +55,7 @@ module.exports = {
await QI.sequelize.query(
`
DELETE FROM "users"
WHERE "userId" = '${user.id}';
WHERE "id" = '${user.id}';
`,
{ type: QI.sequelize.QueryTypes.DELETE, transaction: t },
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = {
transaction: t,
});

const limit = 5000;
const limit = 20000;
let finish = false;
while (!finish) {
const freeAddresses = await QI.sequelize.query(
Expand Down