feat: Document subscriptions (#3834)
Co-authored-by: Tom Moor <tom.moor@gmail.com>
This commit is contained in:
committed by
GitHub
parent
864f585e5b
commit
24c71c38a5
@@ -17,6 +17,7 @@ import presentSearchQuery from "./searchQuery";
|
||||
import presentShare from "./share";
|
||||
import presentSlackAttachment from "./slackAttachment";
|
||||
import presentStar from "./star";
|
||||
import presentSubscription from "./subscription";
|
||||
import presentTeam from "./team";
|
||||
import presentUser from "./user";
|
||||
import presentView from "./view";
|
||||
@@ -36,6 +37,7 @@ export {
|
||||
presentShare,
|
||||
presentSearchQuery,
|
||||
presentStar,
|
||||
presentSubscription,
|
||||
presentTeam,
|
||||
presentGroup,
|
||||
presentIntegration,
|
||||
|
||||
12
server/presenters/subscription.ts
Normal file
12
server/presenters/subscription.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { Subscription } from "@server/models";
|
||||
|
||||
export default function present(subscription: Subscription) {
|
||||
return {
|
||||
id: subscription.id,
|
||||
userId: subscription.userId,
|
||||
documentId: subscription.documentId,
|
||||
event: subscription.event,
|
||||
createdAt: subscription.createdAt,
|
||||
updatedAt: subscription.updatedAt,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user