show error message when wrong workflow id (#3474)

This commit is contained in:
Carina Wollendorfer authored and GitHub committed 2022-07-20 18:33:35 -06:00
1 parent 0a336df162
commit c500952dca
2 files changed
+21 -8

No files matched your search

@@ -82,6 +82,11 @@ export const workflowsRouter = createProtectedRouter()
},
},
});
if (!workflow) {
throw new TRPCError({
code: "UNAUTHORIZED",
});
}
return workflow;
},
})