chore: completed changes requested in PR review
This commit is contained in:
@@ -201,8 +201,11 @@ export class TeamCollectionService {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
teamCollections.forEach((x) =>
|
teamCollections.forEach((collection) =>
|
||||||
this.pubsub.publish(`team_coll/${destTeamID}/coll_added`, this.cast(x)),
|
this.pubsub.publish(
|
||||||
|
`team_coll/${destTeamID}/coll_added`,
|
||||||
|
this.cast(collection),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
return E.right(true);
|
return E.right(true);
|
||||||
@@ -271,8 +274,11 @@ export class TeamCollectionService {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
teamCollections.forEach((x) =>
|
teamCollections.forEach((collections) =>
|
||||||
this.pubsub.publish(`team_coll/${destTeamID}/coll_added`, this.cast(x)),
|
this.pubsub.publish(
|
||||||
|
`team_coll/${destTeamID}/coll_added`,
|
||||||
|
this.cast(collections),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
return E.right(true);
|
return E.right(true);
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// This interface defines how data will be received from the app when we are importing Hoppscotch collections
|
||||||
export interface CollectionFolder {
|
export interface CollectionFolder {
|
||||||
id?: string;
|
id?: string;
|
||||||
folders: CollectionFolder[];
|
folders: CollectionFolder[];
|
||||||
|
|||||||
@@ -1079,8 +1079,8 @@ export class UserCollectionService {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
userCollections.forEach((x) =>
|
userCollections.forEach((collection) =>
|
||||||
this.pubsub.publish(`user_coll/${userID}/created`, this.cast(x)),
|
this.pubsub.publish(`user_coll/${userID}/created`, this.cast(collection)),
|
||||||
);
|
);
|
||||||
|
|
||||||
return E.right(true);
|
return E.right(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user