Leon4gr45's picture
Upload folder using huggingface_hub (part 10)
a271c58 verified
Raw
History Blame Contribute Delete
763 Bytes
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);
}
}