diff --git a/src/services/drive/add-file.ts b/src/services/drive/add-file.ts index 35a7a42d8..ace1a6d62 100644 --- a/src/services/drive/add-file.ts +++ b/src/services/drive/add-file.ts @@ -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; } }