X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=src%2Fdb%2Fbase.js;h=205b8149778928a0ab915d83e9aaf64c158c35b8;hb=43898cdd317a127bc45e8b3cb2f160df386760a1;hp=36cca60328875280620395ae5a4578ebef3136ee;hpb=8f63eeebd08491cdc82e12f178dc500f6d19d65c;p=websub-hub diff --git a/src/db/base.js b/src/db/base.js index 36cca60..205b814 100644 --- a/src/db/base.js +++ b/src/db/base.js @@ -137,7 +137,7 @@ class Database { * @param {Object} data */ _leaseDurationsValidate(data) { - const leaseProperties = Object.keys(this.topicLeaseDefaults) + const leaseProperties = Object.keys(this.topicLeaseDefaults); this._ensureTypes(data, leaseProperties, ['number', 'undefined', 'null']); // Populate defaults on a copy of values so we can check proper numerical ordering @@ -550,8 +550,9 @@ class Database { * Get topic data, without content. * @param {*} dbCtx * @param {String} topicUrl + * @param {Boolean} applyDefaults */ - async topicGetByUrl(dbCtx, topicUrl) { + async topicGetByUrl(dbCtx, topicUrl, applyDefaults = true) { this._notImplemented('topicGetByUrl', arguments); }