backend-manager 2.0.20 → 2.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@ function User(settings, options) {
|
|
|
11
11
|
options = options || {};
|
|
12
12
|
let now = powertools.timestamp(new Date(), {output: 'string'});
|
|
13
13
|
let nowUNIX = powertools.timestamp(now, {output: 'unix'});
|
|
14
|
-
let oldDate = powertools.timestamp(new Date(
|
|
14
|
+
let oldDate = powertools.timestamp(new Date(0), {output: 'string'})
|
|
15
15
|
let oldDateUNIX = powertools.timestamp(oldDate, {output: 'unix'});
|
|
16
16
|
|
|
17
17
|
const useDefaults = typeof options.defaults === 'undefined' ? true : options.defaults;
|
|
@@ -34,7 +34,7 @@ function User(settings, options) {
|
|
|
34
34
|
timestampUNIX: _.get(settings, 'plan.expires.timestampUNIX', useDefaults ? oldDateUNIX : null),
|
|
35
35
|
},
|
|
36
36
|
limits: {
|
|
37
|
-
devices: _.get(settings, 'plan.limits.devices',
|
|
37
|
+
// devices: _.get(settings, 'plan.limits.devices', null),
|
|
38
38
|
},
|
|
39
39
|
payment: {
|
|
40
40
|
processor: _.get(settings, 'plan.payment.processor', null), // paypal | stripe | chargebee, etc
|