Skip to content

Commit

Permalink
fix #755
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwu committed Oct 30, 2017
1 parent ece075e commit 1e9e16f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lualib/skynet/db/mongo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -555,10 +555,10 @@ function mongo_cursor:hasNext()
local pack
if self.__data == nil then
local query = self.__sortquery or self.__query
pack = driver.query(request_id, self.__flags, self.__collection.full_name, self.__skip, -self.__limit, query, self.__selector)
pack = driver.query(request_id, self.__flags, self.__collection.full_name, self.__skip, self.__limit, query, self.__selector)
else
if self.__cursor then
pack = driver.more(request_id, self.__collection.full_name, -self.__limit, self.__cursor)
pack = driver.more(request_id, self.__collection.full_name, self.__limit, self.__cursor)
else
-- no more
self.__document = nil
Expand Down

0 comments on commit 1e9e16f

Please sign in to comment.