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:
@@ -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 {
|
||||||
|
|||||||
@@ -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[] = [
|
||||||
|
|||||||
Reference in New Issue
Block a user