Feature(challenges): save users current challenge to db
This allows us to automatically load their current challenge
This commit is contained in:
@@ -61,6 +61,10 @@ export const addUser = createAction(
|
||||
export const updateThisUser = createAction(types.updateThisUser);
|
||||
export const showSignIn = createAction(types.showSignIn);
|
||||
export const loadCurrentChallenge = createAction(types.loadCurrentChallenge);
|
||||
export const updateMyCurrentChallenge = createAction(
|
||||
types.updateMyCurrentChallenge,
|
||||
(username, currentChallengeId) => ({ username, currentChallengeId })
|
||||
);
|
||||
|
||||
// updateUserPoints(username: String, points: Number) => Action
|
||||
export const updateUserPoints = createAction(
|
||||
|
||||
Reference in New Issue
Block a user