fix: Now it's getting the API URL directly in the request, no longer need the variable in the env file

This commit is contained in:
Davidson Gomes
2023-07-16 17:38:01 -03:00
parent 64e19699fb
commit ec7ad70458
7 changed files with 42 additions and 22 deletions

View File

@@ -14,6 +14,7 @@ const webhookSchema = new Schema<WebhookRaw>({
url: { type: String, required: true },
enabled: { type: Boolean, required: true },
events: { type: [String], required: true },
webhook_by_events: { type: Boolean, required: true },
});
export const WebhookModel = dbserver?.model(WebhookRaw.name, webhookSchema, 'webhook');