diff --git a/ECMJobRunner.Application/Profiles/Commands/Behaviors/MainQueryExecutionBehavior.cs b/ECMJobRunner.Application/Profiles/Commands/Behaviors/MainQueryExecutionBehavior.cs index f2b4f60..d7644f1 100644 --- a/ECMJobRunner.Application/Profiles/Commands/Behaviors/MainQueryExecutionBehavior.cs +++ b/ECMJobRunner.Application/Profiles/Commands/Behaviors/MainQueryExecutionBehavior.cs @@ -78,7 +78,7 @@ namespace ECMJobRunner.Application.Profiles.Commands.Behaviors reason: "Main Query returned nothing.", query: sqlMainQuery, innerException: null); - else if (result.ReturnValue is not null) + else if (result.ReturnValue is not null || result.ReturnValue != 0) throw new JobSqlException( profileId: command.Job.ProfileId, jobName: "Triggering DEX",