mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 19:32:15 +00:00
feat(core): Add endpoint to create free AI credits (#12362)
This commit is contained in:
@@ -186,6 +186,10 @@ export class CredentialsController {
|
||||
);
|
||||
}
|
||||
|
||||
if (credential.isManaged) {
|
||||
throw new BadRequestError('Managed credentials cannot be updated');
|
||||
}
|
||||
|
||||
const decryptedData = this.credentialsService.decrypt(credential);
|
||||
const preparedCredentialData = await this.credentialsService.prepareUpdateData(
|
||||
req.body,
|
||||
|
||||
Reference in New Issue
Block a user