updated comments
This commit is contained in:
parent
63458aff19
commit
1f37c33206
1 changed files with 3 additions and 2 deletions
|
@ -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]) => {
|
||||
|
|
Loading…
Reference in a new issue