mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-29 04:14:30 +00:00
feat(core): allow deleting builtin providers
This commit is contained in:
@@ -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 },
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user