π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
import { Injectable } from '@nestjs/common';
import { WebhooksRepository } from '@gitroom/nestjs-libraries/database/prisma/webhooks/webhooks.repository';
import { WebhooksDto } from '@gitroom/nestjs-libraries/dtos/webhooks/webhooks.dto';
@Injectable()
export class WebhooksService {
constructor(private _webhooksRepository: WebhooksRepository) {}
getTotal(orgId: string) {
return this._webhooksRepository.getTotal(orgId);
}
getWebhooks(orgId: string) {
return this._webhooksRepository.getWebhooks(orgId);
}
createWebhook(orgId: string, body: WebhooksDto) {
return this._webhooksRepository.createWebhook(orgId, body);
}
deleteWebhook(orgId: string, id: string) {
return this._webhooksRepository.deleteWebhook(orgId, id);
}
}