mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-10 02:28:39 +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;
|
||||
let uuidOffset = "00000000-0000-0000-0000-000000000000";
|
||||
|
||||
try {
|
||||
// eslint-disable-next-line no-constant-condition, no-unreachable-loop
|
||||
while (true) {
|
||||
const folderBatch = await db(TableName.SecretFolder)
|
||||
@@ -375,6 +376,9 @@ export const snapshotDALFactory = (db: TDbClient) => {
|
||||
return;
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
throw new DatabaseError({ error, name: "SnapshotPrune" });
|
||||
}
|
||||
};
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user