feat: add reqType to userHistoryDeletedMany subscription (#61)

This commit is contained in:
Akash K
2023-03-30 12:17:00 +05:30
committed by GitHub
parent 885c0dc500
commit 7286d3b94f
5 changed files with 44 additions and 15 deletions

View File

@@ -178,12 +178,14 @@ export class UserHistoryService {
},
});
const deletionInfo = {
count: deletedCount.count,
reqType: requestType.right,
};
// Publish multiple user history deleted subscription
await this.pubsub.publish(
`user_history/${uid}/deleted_many`,
deletedCount.count,
);
return E.right(deletedCount.count);
await this.pubsub.publish(`user_history/${uid}/deleted_many`, deletionInfo);
return E.right(deletionInfo);
}
/**