1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-01 00:08:31 +09:00

Merge pull request #382

fix: migration is not applied properly
This commit is contained in:
NoriDev 2023-10-04 22:43:14 +09:00 committed by GitHub
commit 331a0e6efe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ export class multipleTranslationServices1660183643857 {
await queryRunner.query('SELECT "deeplAuthKey" FROM "meta" where "deeplAuthKey" is not null')
.then(deeplAuthKey => {
if (deeplAuthKey.length > 0) {
return queryRunner.query(`UPDATE "meta" SET "translatorType" = 'DeepL'`);
return queryRunner.query(`UPDATE "meta" SET "translatorType" = 'deepl'`);
}
})
}