mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
✨ Extend NextCloud User-Resource (#1641)
* Add get/getAll:User in NextCloud node * Add update/delete:User in NextCloud node * Fix getAll:User operation
This commit is contained in:
@@ -25,7 +25,7 @@ export async function nextCloudApiRequest(this: IHookFunctions | IExecuteFunctio
|
||||
headers,
|
||||
method,
|
||||
body,
|
||||
qs: {},
|
||||
qs: query ?? {},
|
||||
uri: '',
|
||||
json: false,
|
||||
};
|
||||
@@ -50,7 +50,7 @@ export async function nextCloudApiRequest(this: IHookFunctions | IExecuteFunctio
|
||||
|
||||
options.uri = `${credentials.webDavUrl}/${encodeURI(endpoint)}`;
|
||||
|
||||
if (resource === 'user' && operation === 'create') {
|
||||
if (resource === 'user') {
|
||||
options.uri = options.uri.replace('/remote.php/webdav', '');
|
||||
}
|
||||
return await this.helpers.request(options);
|
||||
|
||||
Reference in New Issue
Block a user