Skip to content

Commit

Permalink
indent
Browse files Browse the repository at this point in the history
  • Loading branch information
maxdml committed Feb 3, 2025
1 parent f40ae92 commit 17e63ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dbos-runtime/workflow_management.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async function getWorkflowInfo(systemDatabase: SystemDatabase, workflowUUID: str
export async function getWorkflow(config: DBOSConfig, workflowUUID: string, getRequest: boolean) {
const systemDatabase = new PostgresSystemDatabase(config.poolConfig, config.system_database, createLogger() as unknown as GlobalLogger)
try {
const info = await getWorkflowInfo(systemDatabase, workflowUUID, getRequest)
const info = await getWorkflowInfo(systemDatabase, workflowUUID, getRequest)
return info;
} finally {
await systemDatabase.destroy();
Expand All @@ -63,7 +63,7 @@ export async function getWorkflow(config: DBOSConfig, workflowUUID: string, getR
export async function cancelWorkflow(config: DBOSConfig, workflowUUID: string) {
const systemDatabase = new PostgresSystemDatabase(config.poolConfig, config.system_database, createLogger() as unknown as GlobalLogger)
try {
await systemDatabase.setWorkflowStatus(workflowUUID, StatusString.CANCELLED, false)
await systemDatabase.setWorkflowStatus(workflowUUID, StatusString.CANCELLED, false)
} finally {
await systemDatabase.destroy();
}
Expand Down

0 comments on commit 17e63ec

Please sign in to comment.