X-Git-Url: http://git.squeep.com/?p=websub-hub;a=blobdiff_plain;f=src%2Fdb%2Fbase.js;fp=src%2Fdb%2Fbase.js;h=205b8149778928a0ab915d83e9aaf64c158c35b8;hp=36cca60328875280620395ae5a4578ebef3136ee;hb=41ae00113d39abada54823b7133c473b8fb758f5;hpb=acf63f7913320f8edb9db9dc31d13ec7ff5d104f 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); }