Loading lib/document_stores/googledatastore.js +4 −3 Original line number Diff line number Diff line /*global require,module,process*/ const datastore = require('@google-cloud/datastore'); const Datastore = require('@google-cloud/datastore'); const winston = require('winston'); class GoogleDatastoreDocumentStore { Loading @@ -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 ? null : new Date(now.getTime() + this.expire * 1000); var taskKey = this.datastore.key([this.kind, key]) var task = { Loading Loading @@ -70,7 +70,7 @@ class GoogleDatastoreDocumentStore { }, { name: 'expiration', value: new Date(now.getTime() + this.expire * 1000; value: new Date(now.getTime() + this.expire * 1000) } ] }; Loading @@ -88,5 +88,6 @@ class GoogleDatastoreDocumentStore { callback(false); }); } } module.exports = GoogleDatastoreDocumentStore; Loading
lib/document_stores/googledatastore.js +4 −3 Original line number Diff line number Diff line /*global require,module,process*/ const datastore = require('@google-cloud/datastore'); const Datastore = require('@google-cloud/datastore'); const winston = require('winston'); class GoogleDatastoreDocumentStore { Loading @@ -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 ? null : new Date(now.getTime() + this.expire * 1000); var taskKey = this.datastore.key([this.kind, key]) var task = { Loading Loading @@ -70,7 +70,7 @@ class GoogleDatastoreDocumentStore { }, { name: 'expiration', value: new Date(now.getTime() + this.expire * 1000; value: new Date(now.getTime() + this.expire * 1000) } ] }; Loading @@ -88,5 +88,6 @@ class GoogleDatastoreDocumentStore { callback(false); }); } } module.exports = GoogleDatastoreDocumentStore;