Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions server/src/routers/recipes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,18 +268,7 @@ export const recipesRouter = router({
if (!recipe) {
throw new AppError("Recipe not found", AppErrors.NOT_FOUND);
}

// Only trigger detection if URL changed, not if only configuration or isTemplate changed
const urlChanged = opts.input.update.url !== undefined && opts.input.update.url !== recipe.url;

if (urlChanged) {
await submitJob(
Queues.DetectConfiguration,
{ recipeId: recipe.id },
`detectConfiguration.${recipe.id}`
);
}


// Build update object with only provided fields
const updateData: any = {};

Expand Down