This commit is contained in:
jysperm
2014-05-26 01:29:28 +08:00
parent 90a2307ee1
commit c87cacfb5e

View File

@@ -29,7 +29,7 @@ exports.post '/subscribe', requestAuthenticate, (req, res) ->
mAccount.update _id: account._id,
$addToSet:
'attribute.service': serviceName
'attribute.services': serviceName
, {}, ->
if config.debug.mock_test
return callback()
@@ -58,7 +58,7 @@ exports.post '/unsubscribe', requestAuthenticate, (req, res) ->
else
mAccount.update _id: account._id,
$pull:
'attribute.service': serviceName
'attribute.services': serviceName
, {}, ->
if config.debug.mock_test
return callback()