refactor(dockscanning): more work on the dock door scanning
All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 1m47s
All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 1m47s
ref #12
This commit is contained in:
@@ -22,7 +22,6 @@ r.patch(
|
||||
requirePermission({ notifications: ["update"] }),
|
||||
async (req, res: Response) => {
|
||||
const { id } = req.params;
|
||||
|
||||
try {
|
||||
const validated = updateNote.parse(req.body);
|
||||
|
||||
@@ -37,6 +36,7 @@ r.patch(
|
||||
await modifiedNotification(id as string);
|
||||
|
||||
if (nError) {
|
||||
|
||||
return apiReturn(res, {
|
||||
success: false,
|
||||
level: "error",
|
||||
@@ -58,6 +58,7 @@ r.patch(
|
||||
status: 200,
|
||||
});
|
||||
} catch (err) {
|
||||
|
||||
if (err instanceof z.ZodError) {
|
||||
const flattened = z.flattenError(err);
|
||||
// return res.status(400).json({
|
||||
|
||||
Reference in New Issue
Block a user