mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 12:27:28 +00:00
misc: added outer try catch block
This commit is contained in:
@@ -331,6 +331,7 @@ export const snapshotDALFactory = (db: TDbClient) => {
|
|||||||
const PRUNE_FOLDER_BATCH_SIZE = 10000;
|
const PRUNE_FOLDER_BATCH_SIZE = 10000;
|
||||||
let uuidOffset = "00000000-0000-0000-0000-000000000000";
|
let uuidOffset = "00000000-0000-0000-0000-000000000000";
|
||||||
|
|
||||||
|
try {
|
||||||
// eslint-disable-next-line no-constant-condition, no-unreachable-loop
|
// eslint-disable-next-line no-constant-condition, no-unreachable-loop
|
||||||
while (true) {
|
while (true) {
|
||||||
const folderBatch = await db(TableName.SecretFolder)
|
const folderBatch = await db(TableName.SecretFolder)
|
||||||
@@ -375,6 +376,9 @@ export const snapshotDALFactory = (db: TDbClient) => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (error) {
|
||||||
|
throw new DatabaseError({ error, name: "SnapshotPrune" });
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user