diff --git a/src/dripper/DripRequestHandler.ts b/src/dripper/DripRequestHandler.ts index 9a25173b..0ab151ee 100644 --- a/src/dripper/DripRequestHandler.ts +++ b/src/dripper/DripRequestHandler.ts @@ -26,8 +26,10 @@ type HandleRequestOpts = | ({ external: false; sender: string } & Omit); export class DripRequestHandler { - // eslint-disable-next-line - constructor(private actions: PolkadotActions, private captchaService: Procaptcha | Recaptcha) {} + constructor( + private actions: PolkadotActions, + private captchaService: Procaptcha | Recaptcha, + ) {} async handleRequest(opts: HandleRequestOpts): Promise { const { external, address: addr, parachain_id, amount } = opts; diff --git a/src/server/routes/actions.spec.ts b/src/server/routes/actions.spec.ts index 31ddb5a1..9fe2c0f1 100644 --- a/src/server/routes/actions.spec.ts +++ b/src/server/routes/actions.spec.ts @@ -35,8 +35,8 @@ jest.mock("../../config", () => { config: { Get: mockConfig.mockImplementation( (key: string) => - // eslint-disable-next-line - ({ NETWORK: "rococo" }[key]), // minimal viable config on the initial import + // eslint-disable-next-line security/detect-object-injection + ({ NETWORK: "rococo" })[key], // minimal viable config on the initial import ), }, };