Skip to content

Commit 43318aa

Browse files
committed
Fix bad if statement
1 parent 6353bf7 commit 43318aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OpenFlow/src/LoginProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@ export class LoginProvider {
10931093
}
10941094

10951095
const arr = await Config.db.query({ query, top: 1, orderby: { "uploadDate": -1 }, collectionname: "files", jwt }, span);
1096-
if (arr[0]) {
1096+
if (arr.length == 0) {
10971097
if (!NoderedUtil.IsNullEmpty(uniquename)) {
10981098
return res.status(404).send({ message: 'uniquename ' + uniquename + ' Not found.' });
10991099
}

0 commit comments

Comments
 (0)