Skip to content
This repository has been archived by the owner on May 7, 2023. It is now read-only.

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hyochan committed Dec 12, 2021
1 parent 14bfc29 commit dbd1f6d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions server/src/services/ChannelService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,8 @@ export const createMemberships = async (
await pipe(
countMemberships,
andThen(
cond([
[
() => countMemberships.length < 2,
() => Promise.all(userIds.map(createMembership)),
],
]),
// @ts-ignore
cond([[(x) => x < 2, () => Promise.all(userIds.map(createMembership))]]),
),
)();
};

0 comments on commit dbd1f6d

Please sign in to comment.