move idList back to root-level, is what's causing the sort bug - see https://github.com/codeparty/racer/pull/73

This commit is contained in:
Tyler Renelle
2013-02-08 20:48:31 -05:00
parent 648032228a
commit 5ea0dfe713
6 changed files with 37 additions and 18 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ module.exports = (expressApp, root, derby) ->
# Create task if doesn't exist
# TODO add service & icon to task
unless model.get("_user.tasks.#{taskId}")
model.refList "_habitList", "_user.tasks", "_user.idLists.habit"
model.refList "_habitList", "_user.tasks", "_user.habitIds"
model.at('_habitList').push {
id: taskId
type: 'habit'