feat(infisical-pg): resolved linting issues

This commit is contained in:
Akhil Mohan
2024-01-26 12:31:32 +05:30
parent deab700716
commit b8b28d2710
3 changed files with 3 additions and 6 deletions

View File

@@ -242,8 +242,6 @@ export const registerIdentityUaRouter = async (server: FastifyZodProvider) => {
}
});
console.log("HELLOoooo====+", typeof(identityUniversalAuth.accessTokenNumUsesLimit), identityUniversalAuth)
return { identityUniversalAuth };
}
});

View File

@@ -1,10 +1,10 @@
import { Knex } from "knex";
import { validate as uuidValidate } from "uuid";
import { TDbClient } from "@app/db";
import { SecretsSchema, SecretType, TableName, TSecrets, TSecretsUpdate } from "@app/db/schemas";
import { BadRequestError, DatabaseError } from "@app/lib/errors";
import { ormify, selectAllTableCols, sqlNestRelationships } from "@app/lib/knex";
import { validate as uuidValidate } from 'uuid';
export type TSecretDALFactory = ReturnType<typeof secretDALFactory>;
@@ -82,7 +82,8 @@ export const secretDALFactory = (db: TDbClient) => {
try {
// check if not uui then userId id is null (corner case because service token's ID is not UUI in effort to keep backwards compatibility from mongo)
if (userId && !uuidValidate(userId)) {
userId = undefined
// eslint-disable-next-line
userId = undefined;
}
const secs = await (tx || db)(TableName.Secret)

View File

@@ -136,8 +136,6 @@ export const secretQueueFactory = ({
});
}
console.log("Secret reminder thingies:)!");
console.log(queueService);
// If the secret already has a reminder, we should remove the existing one first.
if (oldSecret.secretReminderRepeatDays) {
await removeSecretReminder({