We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1aa3108 commit 45264e0Copy full SHA for 45264e0
1 file changed
src/components/database/C2DDatabase.ts
@@ -128,7 +128,8 @@ export class C2DDatabase extends AbstractDatabase {
128
async cleanStorageExpiredJobs(): Promise<number> {
129
const allEnvironments: ComputeEnvironment[] = []
130
const currentTimestamp = Date.now() / 1000
131
- const allEngines = await OceanNode.getInstance().getC2DEngines().engines
+ const c2dEngines = OceanNode.getInstance().getC2DEngines()
132
+ const allEngines = c2dEngines ? c2dEngines.engines : []
133
134
let cleaned = 0
135
for (const engine of allEngines) {
0 commit comments