mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 05:04:05 -08:00
⚡ Minor improvement to NextCloud Node
This commit is contained in:
parent
2ca9c6de7d
commit
1cfdae389e
|
@ -695,7 +695,6 @@ export class NextCloud implements INodeType {
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (resource === 'user') {
|
} else if (resource === 'user') {
|
||||||
|
|
||||||
if (operation === 'create') {
|
if (operation === 'create') {
|
||||||
// ----------------------------------
|
// ----------------------------------
|
||||||
// user:create
|
// user:create
|
||||||
|
@ -774,7 +773,12 @@ export class NextCloud implements INodeType {
|
||||||
if (err) {
|
if (err) {
|
||||||
return reject(err);
|
return reject(err);
|
||||||
}
|
}
|
||||||
resolve(data as IDataObject);
|
|
||||||
|
if (data.ocs.meta.status !== 'ok') {
|
||||||
|
return reject(new Error(data.ocs.meta.message));
|
||||||
|
}
|
||||||
|
|
||||||
|
resolve(data.ocs.data as IDataObject);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue