mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 12:02:13 +00:00
make solo-user subscription a callback of unsubscribe
This commit is contained in:
parent
747b6e7930
commit
e701d98bd7
1 changed files with 2 additions and 2 deletions
|
|
@ -84,8 +84,8 @@ setupSubscriptions = (page, model, params, next, cb) ->
|
|||
|
||||
# (1) Solo player
|
||||
unless party.get()
|
||||
model.unsubscribe partyQ, (-> ) # they didn't have a party, let's not keep that subscription around. Also, async so we don't have to wait
|
||||
return finished([selfQ, 'tavern'], ['_user', '_tavern'])
|
||||
# they didn't have a party, let's not keep that subscription around. Also, async so we don't have to wait
|
||||
return model.unsubscribe partyQ, ->finished([selfQ, 'tavern'], ['_user', '_tavern'])
|
||||
|
||||
## (2) Party has members, subscribe to those users too
|
||||
model.ref '_party', party
|
||||
|
|
|
|||
Loading…
Reference in a new issue