Better log

This commit is contained in:
syuilo 2018-06-08 22:03:14 +09:00
parent deb355ff5e
commit 471d01ef2c

View file

@ -164,8 +164,8 @@ export default async function(
'metadata.deletedAt': { $exists: false }
});
if (much !== null) {
log('file with same hash is found');
if (much) {
log(`file with same hash is found: ${much._id}`);
return much;
}
}