optimize the initial subscription process by first sbuscribing to
parties. this will require a small overhaul of the party system, which I'll do next
This commit is contained in:
@@ -123,6 +123,13 @@ partySystem = (store) ->
|
||||
return accept(false) if derbyAuth.bustedSession(@)
|
||||
accept(true)
|
||||
|
||||
store.query.expose "parties", "withMember", (id) ->
|
||||
@where('members').contains([id]).findOne()
|
||||
|
||||
store.queryAccess 'parties', 'withMember', (id, accept, err) ->
|
||||
return accept(false) if derbyAuth.bustedSession(@)
|
||||
accept(true)
|
||||
|
||||
###
|
||||
LFG / tavern system
|
||||
###
|
||||
|
||||
Reference in New Issue
Block a user