mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-25 15:35:12 +00:00
Update 1644010796173-convert-hard-mutes.js
This commit is contained in:
parent
c456825d0e
commit
9f9b8d1cae
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ module.exports = class convertHardMutes1644010796173 {
|
||||||
name = 'convertHardMutes1644010796173'
|
name = 'convertHardMutes1644010796173'
|
||||||
|
|
||||||
async up(queryRunner) {
|
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++) {
|
for(let i = 0; i < entries.length; i++) {
|
||||||
let words = entries[i].mutedWords
|
let words = entries[i].mutedWords
|
||||||
.map(line => {
|
.map(line => {
|
||||||
|
|
Loading…
Reference in a new issue