From 3981dc4bd16ebb5a828d907bd3dd70189ec6f321 Mon Sep 17 00:00:00 2001 From: EdamAmex Date: Fri, 20 Dec 2024 07:06:48 +0000 Subject: [PATCH] chore: fix and lint --- packages/backend/src/GlobalModule.ts | 4 ++-- packages/frontend/test/url-preview.test.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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');