Fixed unnecessary logging when document not found
This commit is contained in:
parent
faa7e679ca
commit
5f6fefa7a6
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue