Skip to content

Commit affea2c

Browse files
committed
Fix
1 parent 85ea90b commit affea2c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

backend/api/src/create-private-user-message-channel.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ export const createPrivateUserMessageChannel: APIHandler<
3030
throw new APIError(
3131
404,
3232
`Private user ${userIds.find(
33-
(uid) => !toPrivateUsers.map((p) => p.id).includes(uid),
33+
(uid) => !toPrivateUsers.map((p: any) => p.id).includes(uid),
3434
)} not found`,
3535
)
3636

3737
if (
38-
toPrivateUsers.some((user) =>
39-
user.blockedUserIds.some((blockedId) => userIds.includes(blockedId)),
38+
toPrivateUsers.some((user: any) =>
39+
user.blockedUserIds.some((blockedId: string) => userIds.includes(blockedId)),
4040
)
4141
) {
4242
throw new APIError(403, 'One of the users has blocked another user in the list')

0 commit comments

Comments
 (0)