mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
Removed redundant unterface, added comment
This commit is contained in:
@@ -18,10 +18,6 @@ export interface IStream {
|
|||||||
is_announcement_only?: boolean;
|
is_announcement_only?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ISubscription {
|
|
||||||
[value : string] : string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface IPrincipal {
|
export interface IPrincipal {
|
||||||
email: string;
|
email: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ import {
|
|||||||
import { snakeCase } from 'change-case';
|
import { snakeCase } from 'change-case';
|
||||||
import { streamFields, streamOperations } from './StreamDescription';
|
import { streamFields, streamOperations } from './StreamDescription';
|
||||||
import { userOperations, userFields } from './UserDescription';
|
import { userOperations, userFields } from './UserDescription';
|
||||||
import { IStream, ISubscription, IPrincipal } from './StreamInterface';
|
import { IStream, IPrincipal } from './StreamInterface';
|
||||||
import { validateJSON } from './GenericFunctions';
|
import { validateJSON } from './GenericFunctions';
|
||||||
import { IUser } from './UserInterface';
|
import { IUser } from './UserInterface';
|
||||||
|
|
||||||
@@ -434,6 +434,7 @@ export class Zulip implements INodeType {
|
|||||||
responseData = await zulipApiRequest.call(this, 'DELETE', `/users/${userId}`, body);
|
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) {
|
if (responseData.members) {
|
||||||
returnData.push.apply(returnData, responseData.members as IDataObject[]);
|
returnData.push.apply(returnData, responseData.members as IDataObject[]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user