Commit 2c2dbad5 authored by MrMan's avatar MrMan

Fix update fetch, add fixture

parent fe16dad9
......@@ -48,9 +48,9 @@ let TinderUpdateStore = Reflux.createStore({
}
console.log("[TINDER UPDATE STORE] Retrieving updates from Tinder API...");
TinderAPI.POSTWithToken(this.state.tinderAccessToken,
TinderAPI.POSTWithToken(Constants.TINDER_UPDATES_URL,
{last_activity_date:""},
Constants.TINDER_UPDATES_URL)
this.state.tinderAccessToken)
.then(resp => resp.json())
.then(resp => {
console.log("[TINDER UPDATE STORE] Received updates from tinder:", resp);
......
export default {
EMPTY: {
matches: [],
blocks: [],
lists: [],
deleted_lists: [],
last_activity_date: "2015-11-15T01:46:49.227Z"
}
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment