Skip to content

Commit

Permalink
fix: prevent cron scheduler from updating provider relation, fix bott…
Browse files Browse the repository at this point in the history
…om margin on OI
  • Loading branch information
PThorpe92 committed Dec 12, 2024
1 parent e0bc31e commit 1180004
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/tasks/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func (jr *JobRunner) runTask(task *models.RunnableTask) {
return
}
task.Status = models.StatusRunning
if err := jr.db.Save(task).Error; err != nil {
if err := jr.db.Model(&models.RunnableTask{}).Where("id = ?", task.ID).Update("status", models.StatusRunning).Error; err != nil {
log.Errorf("failed to update task status: %v", err)
return
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/Components/OperationalInsightsCharts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const OperationalInsights = () => {
>
Refresh Data
</button>
<div className="flex flex-row gap-4">
<div className="flex flex-row gap-4 pb-4">
<div>
<label htmlFor="days" className="label">
<span className="label-text">Days</span>
Expand Down

0 comments on commit 1180004

Please sign in to comment.