From 360afcdd4531858f9a1f42dd6239035c54e73363 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Mon, 28 Nov 2022 17:08:53 -0300 Subject: [PATCH] Add asPlain to ISubscription --- app/definitions/ISubscription.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/definitions/ISubscription.ts b/app/definitions/ISubscription.ts index ee84c17be..c893ea0e4 100644 --- a/app/definitions/ISubscription.ts +++ b/app/definitions/ISubscription.ts @@ -96,7 +96,6 @@ export interface ISubscription { avatarETag?: string; teamId?: string; teamMain?: boolean; - unsubscribe: () => Promise; separator?: boolean; onHold?: boolean; source?: IOmnichannelSource; @@ -108,7 +107,11 @@ export interface ISubscription { uploads: RelationModified; } -export type TSubscriptionModel = ISubscription & Model; +export type TSubscriptionModel = ISubscription & + Model & { + unsubscribe: () => Promise; + asPlain: () => ISubscription; + }; export type TSubscription = TSubscriptionModel | ISubscription; // https://github.com/RocketChat/Rocket.Chat/blob/a88a96fcadd925b678ff27ada37075e029f78b5e/definition/ISubscription.ts#L8