From 1f37c33206146cfd0f7613817dd17d9fde9f66f8 Mon Sep 17 00:00:00 2001 From: bill bittner Date: Mon, 6 Nov 2017 14:22:00 -0800 Subject: [PATCH] updated comments --- controllers/publishController.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/controllers/publishController.js b/controllers/publishController.js index 5dd06482..d832c814 100644 --- a/controllers/publishController.js +++ b/controllers/publishController.js @@ -22,6 +22,7 @@ module.exports = { } }) .then(channel => { + // set channel information certificateId = null; channelName = null; if (channel) { @@ -61,12 +62,12 @@ module.exports = { certificateId, channelName, }; - // upsert File record (update is in case the claim has been published before by this daemon) + // upsert criteria const upsertCriteria = { name : publishParams.name, claimId: publishResults.claim_id, }; - // create the records + // upsert the records return Promise.all([db.upsert(db.File, fileRecord, upsertCriteria, 'File'), db.upsert(db.Claim, claimRecord, upsertCriteria, 'Claim')]); }) .then(([file, claim]) => {