mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
Removed redundant unterface, added comment
This commit is contained in:
parent
9f22a64304
commit
f9c5689d45
|
@ -18,10 +18,6 @@ export interface IStream {
|
|||
is_announcement_only?: boolean;
|
||||
}
|
||||
|
||||
export interface ISubscription {
|
||||
[value : string] : string;
|
||||
}
|
||||
|
||||
export interface IPrincipal {
|
||||
email: string;
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ import {
|
|||
import { snakeCase } from 'change-case';
|
||||
import { streamFields, streamOperations } from './StreamDescription';
|
||||
import { userOperations, userFields } from './UserDescription';
|
||||
import { IStream, ISubscription, IPrincipal } from './StreamInterface';
|
||||
import { IStream, IPrincipal } from './StreamInterface';
|
||||
import { validateJSON } from './GenericFunctions';
|
||||
import { IUser } from './UserInterface';
|
||||
|
||||
|
@ -434,6 +434,7 @@ export class Zulip implements INodeType {
|
|||
responseData = await zulipApiRequest.call(this, 'DELETE', `/users/${userId}`, body);
|
||||
}
|
||||
}
|
||||
// Specific checks because API returns multiple objects within 1 object with each key name
|
||||
if (responseData.members) {
|
||||
returnData.push.apply(returnData, responseData.members as IDataObject[]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue