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

Merge pull request #221 from PassTheMayo/patch-1

Fixed unnecessary logging when document not found
This commit is contained in:
John Crepezzi 2018-04-30 19:45:16 -04:00 committed by GitHub
commit d922667f56
Signed by: GitHub
GPG key ID: 4AEE18F83AFDEB23

View file

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