feat(core): allow deleting builtin providers

This commit is contained in:
yiling
2026-06-17 16:39:23 +08:00
parent 6f91b9e809
commit 2aba1c898b
2 changed files with 4 additions and 8 deletions
-4
View File
@@ -143,10 +143,6 @@ export class ProviderService {
throw new Error('Provider not found')
}
if (provider.isBuiltin) {
throw new Error('Cannot delete builtin provider')
}
return this.prismaClient.provider.delete({
where: { id, teamId },
})