Update 1740121393164-system-accounts.js

This commit is contained in:
syuilo 2025-02-21 18:32:03 +09:00
parent d398f53a03
commit 6bf83c96a1
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,8 @@ export class SystemAccounts1740121393164 {
await queryRunner.query(`INSERT INTO "system_account" ("id", "userId", "type") VALUES ('${relayActor[0].id}', '${relayActor[0].id}', 'relay')`);
}
// TODO: proxy
const meta = await queryRunner.query(`SELECT "proxyAccountId" FROM "meta" ORDER BY "id" DESC LIMIT 1`);
await queryRunner.query(`INSERT INTO "system_account" ("id", "userId", "type") VALUES ('${meta[0].proxyAccountId}', '${meta[0].proxyAccountId}', 'proxy')`);
}
async down(queryRunner) {