mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 12:44:07 -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') {
|
||||
|
||||
if (operation === 'create') {
|
||||
// ----------------------------------
|
||||
// user:create
|
||||
|
@ -774,7 +773,12 @@ export class NextCloud implements INodeType {
|
|||
if (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