mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-27 00:13:03 +00:00
[Server] Remove needless query
This commit is contained in:
parent
46f460a3bf
commit
ac661eacc0
1 changed files with 2 additions and 3 deletions
|
@ -54,11 +54,10 @@ export default (
|
|||
.digest('hex') as string;
|
||||
|
||||
if (!force) {
|
||||
// Check if there is a file with the same hash and same data size (to be safe)
|
||||
// Check if there is a file with the same hash
|
||||
const much = await DriveFile.findOne({
|
||||
user_id: user._id,
|
||||
hash: hash,
|
||||
datasize: size
|
||||
hash: hash
|
||||
});
|
||||
|
||||
if (much !== null) {
|
||||
|
|
Loading…
Reference in a new issue