mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 16:40:30 +00:00
feat: fixed eslint and resolved all eslint issues
This commit is contained in:
@@ -26,7 +26,7 @@ export const projectEnvDALFactory = (db: TDbClient) => {
|
||||
const findLastEnvPosition = async (projectId: string, tx?: Knex) => {
|
||||
const lastPos = await (tx || db)(TableName.Environment)
|
||||
.where({ projectId })
|
||||
.max({ position: "position" })
|
||||
.max("position", { as: "position" })
|
||||
.first();
|
||||
return lastPos?.position || 0;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user