mirror of
https://github.com/SunRed/haste-server.git
synced 2024-12-28 15:10:11 +01:00
Merge pull request #221 from PassTheMayo/patch-1
Fixed unnecessary logging when document not found
This commit is contained in:
commit
d922667f56
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue