mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Add token-access-refs indexes
This commit is contained in:
parent
008d052862
commit
efe09aa885
1 changed files with 10 additions and 2 deletions
|
@ -30,6 +30,14 @@ exports.migrate = (client, done=()->) ->
|
|||
}, (err) ->
|
||||
if err?
|
||||
return done(err)
|
||||
db.projects.ensureIndex {tokenAccessReadAndWrite_refs: 1}, {
|
||||
background: true
|
||||
}, (err) ->
|
||||
if err?
|
||||
return done(err)
|
||||
db.projects.ensureIndex {tokenAccessOnly_refs: 1}, {
|
||||
background: true
|
||||
}, (err) ->
|
||||
console.log ">> done adding indexes for token-based project access"
|
||||
done()
|
||||
|
||||
|
|
Loading…
Reference in a new issue