chore (backend): add type annotation

This commit is contained in:
naskya 2024-07-05 04:24:15 +09:00
parent 3d11e6d519
commit 507487e6e8
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C

View file

@ -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,