Skip to content

Commit 801e6f6

Browse files
authored
fix: confirmUpload logic (#318)
1 parent 6452b36 commit 801e6f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/tool/api/upload/confirmUpload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default s.route(contract.tool.upload.confirmUpload, async ({ body }) => {
1717
.map((item) => item.split('/').at(-1)?.split('.').at(0))
1818
.filter((item): item is string => !!item);
1919

20-
if (pendingToolIds.some((item) => !toolIds.includes(item))) {
20+
if (!pendingToolIds.some((item) => toolIds.includes(item))) {
2121
return {
2222
status: 400,
2323
body: {

0 commit comments

Comments
 (0)