From 507487e6e8ac42241cdb54182eec01d45ffcd1ba Mon Sep 17 00:00:00 2001 From: naskya Date: Fri, 5 Jul 2024 04:24:15 +0900 Subject: [PATCH] chore (backend): add type annotation --- packages/backend/src/models/repositories/antenna.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/models/repositories/antenna.ts b/packages/backend/src/models/repositories/antenna.ts index e6e62bbc10..2aec5debb5 100644 --- a/packages/backend/src/models/repositories/antenna.ts +++ b/packages/backend/src/models/repositories/antenna.ts @@ -16,8 +16,10 @@ export const AntennaRepository = db.getRepository(Antenna).extend({ id: antenna.id, createdAt: antenna.createdAt.toISOString(), name: antenna.name, - keywords: antenna.keywords.map((row) => row.split(" ")), - excludeKeywords: antenna.excludeKeywords.map((row) => row.split(" ")), + keywords: antenna.keywords.map((row: string) => row.split(" ")), + excludeKeywords: antenna.excludeKeywords.map((row: string) => + row.split(" "), + ), src: antenna.src, userListId: antenna.userListId, userGroupId: userGroupJoining ? userGroupJoining.userGroupId : null,