1
0
Fork 0
mirror of https://github.com/seejohnrun/haste-server.git synced 2024-11-01 03:21:21 +00:00

Fixed unnecessary logging when document not found

This commit is contained in:
Jacob Gunther 2018-04-30 16:40:28 -05:00 committed by GitHub
parent faa7e679ca
commit 5f6fefa7a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,7 +35,7 @@ class RethinkDBStore {
this.client.table('uploads').get(md5(key)).run((error, result) => {
if (error || !result) {
callback(false);
winston.error('failed to insert to table', error);
if (error) winston.error('failed to insert to table', error);
return;
}
callback(result.data);