Skip to content

Commit

Permalink
refactor: Added active to solo, challenge, team member and team streaks
Browse files Browse the repository at this point in the history
  • Loading branch information
ReeceKidd committed Sep 2, 2020
1 parent b6a586c commit 1701ee1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/actions/userActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ const userActions = (streakoid: StreakoidSDK) => {
const supportedPopulatedActivityFeedItems = populatedActivityFeedItems.filter(
(activityFeedItem): activityFeedItem is ClientActivityFeedItemType => activityFeedItem !== undefined,
);
const soloStreaks = await streakoid.user.soloStreaks({});
const challengeStreaks = await streakoid.user.challengeStreaks({});
const soloStreaks = await streakoid.user.soloStreaks({ active: true });
const challengeStreaks = await streakoid.user.challengeStreaks({ active: true });
const challengeStreaksWithClientData = await Promise.all(
challengeStreaks.map(async challengeStreak => {
const challenge = await streakoid.challenges.getOne({ challengeId: challengeStreak.challengeId });
Expand All @@ -264,8 +264,8 @@ const userActions = (streakoid: StreakoidSDK) => {
};
}),
);
const teamStreaks = await streakoid.user.teamStreaks({});
const teamMemberStreaks = await streakoid.user.teamMemberStreaks({});
const teamStreaks = await streakoid.user.teamStreaks({ active: true });
const teamMemberStreaks = await streakoid.user.teamMemberStreaks({ active: true });
dispatch({
type: GET_CURRENT_USER,
payload: {
Expand Down

0 comments on commit 1701ee1

Please sign in to comment.