Skip to content

Commit b3aa796

Browse files
committed
Remove duplicated retarget-authorization check (CL-7363)
1 parent 44b9206 commit b3aa796

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

‎packages/routines/src/routes.ts‎

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -889,27 +889,6 @@ export function createRoutineRoutes(
889889
const effectiveDefinitionAssetId =
890890
body.definitionAssetId ?? existing.definitionAssetId;
891891

892-
if (
893-
body.definitionAssetId !== undefined &&
894-
body.definitionAssetId !== existing.definitionAssetId
895-
) {
896-
const rejection = await rejectUnlaunchableTarget(
897-
deps,
898-
tenant.id,
899-
principal.id,
900-
body.definitionAssetId,
901-
);
902-
if (rejection !== undefined) {
903-
return c.json(
904-
makeErrorEnvelope({
905-
code: rejection.code,
906-
userMessage: rejection.userMessage,
907-
}),
908-
rejection.status,
909-
);
910-
}
911-
}
912-
913892
if (
914893
body.trigger !== undefined &&
915894
!(await webhookTriggerValid(

0 commit comments

Comments
 (0)