Skip to content

Commit

Permalink
driven出url为新location的代码
Browse files Browse the repository at this point in the history
  • Loading branch information
ericwangqing committed Sep 23, 2013
1 parent c504e06 commit 3ea1a46
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/business/interesting-points-manager.ls
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,10 @@ create-interesting-point = !(location, interesting-point-data, callback)->
interesting-point = utils.clone interesting-point-data
interesting-point.within-location.lid = location._id
interesting-point.within-location.is-exist = true
# interesting-point.within-location.at-position = position-within-web-page: interesting-point.within-location.at-position
# delete interesting-point.within-location.at-position
(db) <-! database.get-db
(err, result) <-! db.at-plus['interesting-points'].insert interesting-point
callback summarize interesting-point



module.exports =
get-interesting-points-summaries-map: get-interesting-points-summaries-map
visit-uids-of-interesting-points-summaries-map: visit-uids-of-interesting-points-summaries-map
Expand Down
2 changes: 0 additions & 2 deletions src/business/messages-manager.ls
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ _ = require 'underscore'

get-recent-messages-map = !(ipids, callback)->
(db) <-! database.get-db
# cursor = db.at-plus.messages.find {ipid: "$in": ipids}
(err, messages) <-! db.at-plus.messages.find {ipid: "$in": ipids}
# .limit config.locations-channel.amount-of-recent-messages-in-interesting-points
.sort create-time: -1
.to-array
callback create-brief-recent-messages-map messages
Expand Down

0 comments on commit 3ea1a46

Please sign in to comment.