mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-09 20:28:31 +00:00
feat: fixed eslint and resolved all eslint issues
This commit is contained in:
@@ -74,10 +74,10 @@ export const webhookDALFactory = (db: TDbClient) => {
|
||||
.where(`${TableName.Environment}.projectId`, projectId)
|
||||
.where((qb) => {
|
||||
if (environment) {
|
||||
qb.where("slug", environment);
|
||||
void qb.where("slug", environment);
|
||||
}
|
||||
if (secretPath) {
|
||||
qb.where("secretPath", secretPath);
|
||||
void qb.where("secretPath", secretPath);
|
||||
}
|
||||
})
|
||||
.join(TableName.Environment, `${TableName.Webhook}.envId`, `${TableName.Environment}.id`)
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import crypto from "node:crypto";
|
||||
|
||||
import { AxiosError } from "axios";
|
||||
import picomatch from "picomatch";
|
||||
|
||||
import { SecretKeyEncoding, TWebhooks } from "@app/db/schemas";
|
||||
@@ -111,7 +112,7 @@ export const fnTriggerWebhook = async ({
|
||||
.filter(({ status }) => status === "rejected")
|
||||
.map((data, i) => ({
|
||||
id: toBeTriggeredHooks[i].id,
|
||||
error: data.status === "rejected" && data.reason.message
|
||||
error: data.status === "rejected" ? (data.reason as AxiosError).message : ""
|
||||
}));
|
||||
|
||||
await webhookDAL.transaction(async (tx) => {
|
||||
|
||||
Reference in New Issue
Block a user