feat: changed line length to 120

This commit is contained in:
Akhil Mohan
2024-01-30 22:40:10 +05:30
parent 5855cc660a
commit bcbb49ed1b
142 changed files with 1183 additions and 3706 deletions
@@ -12,9 +12,7 @@ export const projectEnvDALFactory = (db: TDbClient) => {
const findBySlugs = async (projectId: string, env: string[], tx?: Knex) => {
try {
const envs = await (tx || db)(TableName.Environment)
.where("projectId", projectId)
.whereIn("slug", env);
const envs = await (tx || db)(TableName.Environment).where("projectId", projectId).whereIn("slug", env);
return envs;
} catch (error) {
throw new DatabaseError({ error, name: "Find by slugs" });
@@ -31,12 +29,7 @@ export const projectEnvDALFactory = (db: TDbClient) => {
return lastPos?.position || 0;
};
const updateAllPosition = async (
projectId: string,
pos: number,
targetPos: number,
tx?: Knex
) => {
const updateAllPosition = async (projectId: string, pos: number, targetPos: number, tx?: Knex) => {
try {
if (targetPos === -1) {
// this means delete