mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
test: Fix broken workflow tag tests (#8641)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <netroy@users.noreply.github.com> Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
@@ -329,7 +329,8 @@ export = {
|
|||||||
await updateTags(id, newTags);
|
await updateTags(id, newTags);
|
||||||
tags = await getWorkflowTags(id);
|
tags = await getWorkflowTags(id);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error instanceof QueryFailedError && error.message.includes('SQLITE_CONSTRAINT')) {
|
// TODO: add a `ConstraintFailureError` in typeorm to handle when tags are missing here
|
||||||
|
if (error instanceof QueryFailedError) {
|
||||||
return res.status(404).json({ message: 'Some tags not found' });
|
return res.status(404).json({ message: 'Some tags not found' });
|
||||||
} else {
|
} else {
|
||||||
throw error;
|
throw error;
|
||||||
|
|||||||
Reference in New Issue
Block a user