mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Don't call sadd with blank args
This commit is contained in:
parent
9bd7c0017d
commit
8b090c0a60
1 changed files with 4 additions and 1 deletions
|
@ -143,4 +143,7 @@ module.exports = RedisManager =
|
|||
getAndSetProject: (project_id, callback = (error) ->) ->
|
||||
rclient.smembers keys.docsInProject(project_id: project_id), (error, doc_ids) ->
|
||||
return callback(error) if error?
|
||||
if doc_ids.length > 0
|
||||
rclient.sadd keys.docsInProject(project_id: project_id), doc_ids..., callback
|
||||
else
|
||||
callback()
|
||||
|
|
Loading…
Reference in a new issue