15 lines
357 B
TypeScript
15 lines
357 B
TypeScript
import { WebhookSubscription } from "@server/models";
|
|
|
|
export default function present(webhook: WebhookSubscription) {
|
|
return {
|
|
id: webhook.id,
|
|
name: webhook.name,
|
|
url: webhook.url,
|
|
secret: webhook.secret,
|
|
events: webhook.events,
|
|
enabled: webhook.enabled,
|
|
createdAt: webhook.createdAt,
|
|
updatedAt: webhook.updatedAt,
|
|
};
|
|
}
|