mirror of
https://github.com/immich-app/immich.git
synced 2026-07-28 14:47:30 -07:00
chore(server): update sql and lint
This commit is contained in:
@@ -101,6 +101,7 @@ where
|
||||
|
||||
-- WorkflowRepository.getLogs
|
||||
select
|
||||
"workflow_log"."id",
|
||||
"workflow_log"."createdAt",
|
||||
"workflow_log"."halted",
|
||||
"workflow_log"."error",
|
||||
|
||||
@@ -456,7 +456,7 @@ export class WorkflowExecutionService extends BaseService {
|
||||
const shouldContinue = result?.workflow?.continue ?? true;
|
||||
if (!shouldContinue) {
|
||||
if (workflow.logging) {
|
||||
this.workflowRepository.log({
|
||||
await this.workflowRepository.log({
|
||||
workflowId,
|
||||
error: false,
|
||||
halted: true,
|
||||
@@ -472,7 +472,7 @@ export class WorkflowExecutionService extends BaseService {
|
||||
this.logger.error(`Error executing workflow ${workflowId}:`, error);
|
||||
|
||||
if (workflow.logging) {
|
||||
this.workflowRepository.log({
|
||||
await this.workflowRepository.log({
|
||||
workflowId,
|
||||
error: true,
|
||||
halted: false,
|
||||
@@ -486,7 +486,7 @@ export class WorkflowExecutionService extends BaseService {
|
||||
}
|
||||
|
||||
if (workflow.logging) {
|
||||
this.workflowRepository.log({
|
||||
await this.workflowRepository.log({
|
||||
workflowId,
|
||||
error: false,
|
||||
halted: false,
|
||||
|
||||
Reference in New Issue
Block a user