Feature(challenges): save users current challenge to db

This allows us to automatically load their current challenge
This commit is contained in:
Berkeley Martinez
2016-08-03 15:26:05 -07:00
parent 42de7c57ef
commit 2b32fb3633
6 changed files with 83 additions and 3 deletions

View File

@@ -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(