feat: restrict deletion for context vars that are in use

This commit is contained in:
hexastack
2024-10-08 17:05:09 +01:00
parent aa25ce6b03
commit bbba54b2c1
5 changed files with 60 additions and 11 deletions

View File

@@ -137,7 +137,7 @@ describe('ContextVarController', () => {
contextVarController.deleteOne(contextVarToDelete.id),
).rejects.toThrow(
new NotFoundException(
`ContextVar with ID ${contextVarToDelete.id} not found`,
`Context var with ID ${contextVarToDelete.id} not found.`,
),
);
});