We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85ea90b commit affea2cCopy full SHA for affea2c
1 file changed
backend/api/src/create-private-user-message-channel.ts
@@ -30,13 +30,13 @@ export const createPrivateUserMessageChannel: APIHandler<
30
throw new APIError(
31
404,
32
`Private user ${userIds.find(
33
- (uid) => !toPrivateUsers.map((p) => p.id).includes(uid),
+ (uid) => !toPrivateUsers.map((p: any) => p.id).includes(uid),
34
)} not found`,
35
)
36
37
if (
38
- toPrivateUsers.some((user) =>
39
- user.blockedUserIds.some((blockedId) => userIds.includes(blockedId)),
+ toPrivateUsers.some((user: any) =>
+ user.blockedUserIds.some((blockedId: string) => userIds.includes(blockedId)),
40
41
) {
42
throw new APIError(403, 'One of the users has blocked another user in the list')
0 commit comments