Skip to content

Commit

Permalink
fix finding designs
Browse files Browse the repository at this point in the history
  • Loading branch information
dodo committed Jan 6, 2012
1 parent 600a2e8 commit d8c9f27
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/sync.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,9 @@ sync = (done) ->

(data.rows or data).forEach (el) => # cradle raw mode? doesnt matter
doc = el.doc ? el
design = @designs[doc?._id]
design = @designs[doc?._id ? doc.key]
return unless design?


if doc.error # whateva (mostly not_found, but i dont care)
@log "new design '#{design._id}'", design
queue.push design
Expand Down

0 comments on commit d8c9f27

Please sign in to comment.