mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 21:27:10 +00:00
TS linter issue
This commit is contained in:
@@ -10,6 +10,7 @@ import { AuthMode } from "@app/services/auth/auth-type";
|
|||||||
export const registerBddNockRouter = async (server: FastifyZodProvider) => {
|
export const registerBddNockRouter = async (server: FastifyZodProvider) => {
|
||||||
const importNock = async () => {
|
const importNock = async () => {
|
||||||
// Notice: it seems like importing nock somehow increase memory usage a lots, let's import it lazily.
|
// Notice: it seems like importing nock somehow increase memory usage a lots, let's import it lazily.
|
||||||
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||||
const nock = await import("nock");
|
const nock = await import("nock");
|
||||||
if (!nock) {
|
if (!nock) {
|
||||||
throw new InternalServerError({ message: "Failed to import nock" });
|
throw new InternalServerError({ message: "Failed to import nock" });
|
||||||
|
|||||||
Reference in New Issue
Block a user