Update 1644010796173-convert-hard-mutes.js

This commit is contained in:
syuilo 2022-02-11 21:17:07 +09:00
parent 9cd07c6eac
commit 7069a28c15

View file

@ -5,7 +5,7 @@ module.exports = class convertHardMutes1644010796173 {
name = 'convertHardMutes1644010796173'
async up(queryRunner) {
let entries = await queryRunner.query(`SELECT "userId", "mutedWords" FROM "user_profile"`);
let entries = await queryRunner.query(`SELECT "userId", "mutedWords" FROM "user_profile" WHERE "userHost" IS NULL`);
for(let i = 0; i < entries.length; i++) {
let words = entries[i].mutedWords
.map(line => {