feat: fixed eslint and resolved all eslint issues

This commit is contained in:
Akhil Mohan
2024-01-30 22:30:42 +05:30
parent 7c4dd5000f
commit 5855cc660a
147 changed files with 1165 additions and 938 deletions
+3 -3
View File
@@ -63,7 +63,7 @@ export const secretDALFactory = (db: TDbClient) => {
.where({ folderId })
.where((bd) => {
data.forEach((el) => {
bd.orWhere({
void bd.orWhere({
secretBlindIndex: el.blindIndex,
type: el.type,
...(el.type === SecretType.Personal ? { userId } : {})
@@ -89,7 +89,7 @@ export const secretDALFactory = (db: TDbClient) => {
const secs = await (tx || db)(TableName.Secret)
.where({ folderId })
.where((bd) => {
bd.whereNull("userId").orWhere({ userId: userId || null });
void bd.whereNull("userId").orWhere({ userId: userId || null });
})
.leftJoin(
TableName.JnSecretTag,
@@ -144,7 +144,7 @@ export const secretDALFactory = (db: TDbClient) => {
if (el.type === SecretType.Personal && !userId) {
throw new BadRequestError({ message: "Missing personal user id" });
}
bd.orWhere({
void bd.orWhere({
secretBlindIndex: el.blindIndex,
type: el.type,
userId: el.type === SecretType.Personal ? userId : null
+1 -1
View File
@@ -318,7 +318,7 @@ export const secretQueueFactory = ({
botKey
);
const suffixedSecrets: typeof secrets = {};
const metadata = integration.metadata as Record<string, any>;
const metadata = integration.metadata as Record<string, string>;
if (metadata) {
Object.keys(secrets).forEach((key) => {
const prefix = metadata?.secretPrefix || "";