fix: update credential name to use camelCase (kDriveApi)

- Changed credential name from 'kdriveApi' to 'kDriveApi' for consistency
- Updated all references in KDrive node and credentials
- This may resolve the credential discovery issue
This commit is contained in:
2025-12-23 10:22:10 +01:00
parent a57f51b847
commit 89800687a2
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ export class KDrive implements INodeType {
outputs: ['main'], outputs: ['main'],
credentials: [ credentials: [
{ {
name: 'kdriveApi', name: 'kDriveApi',
required: true, required: true,
displayOptions: { displayOptions: {
show: { show: {
@@ -356,7 +356,7 @@ export class KDrive implements INodeType {
const resource = this.getNodeParameter('resource', 0) as string; const resource = this.getNodeParameter('resource', 0) as string;
const operation = this.getNodeParameter('operation', 0) as string; const operation = this.getNodeParameter('operation', 0) as string;
const credentials = await this.getCredentials('kdriveApi'); const credentials = await this.getCredentials('kDriveApi');
for (let i = 0; i < items.length; i++) { for (let i = 0; i < items.length; i++) {
try { try {
+1 -1
View File
@@ -4,7 +4,7 @@ import {
} from 'n8n-workflow'; } from 'n8n-workflow';
export class KDriveCredentials implements ICredentialType { export class KDriveCredentials implements ICredentialType {
name = 'kdriveApi'; name = 'kDriveApi';
displayName = 'kDrive API'; displayName = 'kDrive API';
documentationUrl = 'https://developer.infomaniak.com'; documentationUrl = 'https://developer.infomaniak.com';
properties: INodeProperties[] = [ properties: INodeProperties[] = [