diff --git a/packages/backend/src/GlobalModule.ts b/packages/backend/src/GlobalModule.ts index 5d1de1c5f7..552954bd96 100644 --- a/packages/backend/src/GlobalModule.ts +++ b/packages/backend/src/GlobalModule.ts @@ -127,8 +127,8 @@ const $meta: Provider = { switch (type) { case 'metaUpdated': { Object.entries(body.after).forEach(([key, value]) => { - (meta as any)[key] = value - }) + (meta as any)[key] = value; + }); meta.proxyAccount = null; // joinなカラムは通常取ってこないので break; } diff --git a/packages/frontend/test/url-preview.test.ts b/packages/frontend/test/url-preview.test.ts index 586014f4e9..3d3a4730e5 100644 --- a/packages/frontend/test/url-preview.test.ts +++ b/packages/frontend/test/url-preview.test.ts @@ -77,7 +77,7 @@ describe('MkUrlPreview', () => { url: 'https://example.local/player', width: null, height: null, - allow: undefined as unknown as string[], + allow: [], }, }); const buttons = mkUrlPreview.getAllByRole('button'); @@ -123,7 +123,7 @@ describe('MkUrlPreview', () => { url: 'https://example.local/player', width: null, height: null, - allow: [], + allow: undefined as unknown as string[], }, }); assert.exists(iframe, 'iframe should exist');