1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-08-13 17:03:51 -04:00

Fix saving disco caps on first appearance

This commit is contained in:
Lance Stout 2014-01-12 02:08:27 -08:00
parent 720e2c8640
commit 39bfb018ce

View File

@ -46,7 +46,7 @@ var discoCapsQueue = async.queue(function (pres, cb) {
log.info('Saving info for ' + caps.ver);
var data = result.discoInfo.toJSON();
app.storage.disco.add(caps.ver, data, function () {
if (resource) resource.discoInfo = existing;
if (resource) resource.discoInfo = data;
cb();
});
} else {