Use correct var when returning updated certificate

This commit is contained in:
Jamie Curnow 2019-05-09 10:03:41 +10:00
parent 3885c0ad6d
commit 06272d3d2c
2 changed files with 4 additions and 4 deletions

View File

@ -44,9 +44,9 @@ const internalAuditLog = {
* @param {Access} access
* @param {Object} data
* @param {String} data.action
* @param {Integer} [data.user_id]
* @param {Integer} [data.object_id]
* @param {Integer} [data.object_type]
* @param {Number} [data.user_id]
* @param {Number} [data.object_id]
* @param {Number} [data.object_type]
* @param {Object} [data.meta]
* @returns {Promise}
*/

View File

@ -766,7 +766,7 @@ const internalCertificate = {
meta: updated_certificate
})
.then(() => {
return certificate;
return updated_certificate;
});
})
} else {