Added eslint and fixed an issue from #158
This commit is contained in:
parent
3ed1d775ac
commit
5939dec185
6 changed files with 36 additions and 13 deletions
|
@ -23,7 +23,7 @@ PostgresDocumentStore.prototype = {
|
|||
key,
|
||||
data,
|
||||
that.expireJS && !skipExpire ? that.expireJS + now : null
|
||||
], function (err, result) {
|
||||
], function (err) {
|
||||
if (err) {
|
||||
winston.error('error persisting value to postgres', { error: err });
|
||||
return callback(false);
|
||||
|
@ -50,7 +50,7 @@ PostgresDocumentStore.prototype = {
|
|||
client.query('UPDATE entries SET expiration = $1 WHERE ID = $2', [
|
||||
that.expireJS + now,
|
||||
result.rows[0].id
|
||||
], function (err, result) {
|
||||
], function (err) {
|
||||
if (!err) {
|
||||
done();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue