Removed redundant unterface, added comment

This commit is contained in:
Rupenieks 2020-05-19 17:45:39 +02:00
parent 9f22a64304
commit f9c5689d45
2 changed files with 2 additions and 5 deletions

View file

@ -18,10 +18,6 @@ export interface IStream {
is_announcement_only?: boolean;
}
export interface ISubscription {
[value : string] : string;
}
export interface IPrincipal {
email: string;
}

View file

@ -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[]);
}