added condition for this.expire not defined
This commit is contained in:
parent
1eeef4ede4
commit
5fb43eb67c
|
@ -15,7 +15,7 @@ class GoogleDatastoreDocumentStore {
|
|||
// Save file in a key
|
||||
set(key, data, callback, skipExpire) {
|
||||
var now = new Date();
|
||||
var expireTime = skipExpire ? null : new Date(now.getTime() + this.expire * 1000);
|
||||
var expireTime = (skipExpire || this.expire === undefined) ? null : new Date(now.getTime() + this.expire * 1000);
|
||||
|
||||
var taskKey = this.datastore.key([this.kind, key])
|
||||
var task = {
|
||||
|
|
Loading…
Reference in New Issue
Block a user