Skip to content

Commit 5f95bb4

Browse files
committed
fix: Correct error handling response in API route to return success instead of failure
1 parent d899963 commit 5f95bb4

File tree

1 file changed

+1
-1
lines changed
  • apps/meteor/app/api/server/v1

1 file changed

+1
-1
lines changed

apps/meteor/app/api/server/v1/misc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ API.v1.addRoute(
535535
if (settings.get('Log_Level') === '2') {
536536
Meteor._debug(`Exception while invoking method ${method}`, err);
537537
}
538-
return API.v1.failure(mountResult({ id, error: err }));
538+
return API.v1.success(mountResult({ id, error: err }));
539539
}
540540
},
541541
},

0 commit comments

Comments
 (0)