Skip to content

Commit 3f2e3d8

Browse files
committed
update audit log
1 parent b76b90d commit 3f2e3d8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/chart/ChartService.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ func (impl *ChartServiceImpl) UpdateExistingChartsToLatestFalse(tx *pg.Tx, templ
345345
if noLatestChart.Id != templateRequest.Id {
346346
noLatestChart.Latest = false // these are already false by d way
347347
noLatestChart.Previous = false
348+
noLatestChart.UpdateAuditLog(templateRequest.UserId)
348349
updatedCharts = append(updatedCharts, noLatestChart)
349350
}
350351
}
@@ -356,6 +357,7 @@ func (impl *ChartServiceImpl) UpdateExistingChartsToLatestFalse(tx *pg.Tx, templ
356357
// now finally update latest entry in db to false and previous true
357358
currentLatestChart.Latest = false // these are already false by d way
358359
currentLatestChart.Previous = true
360+
currentLatestChart.UpdateAuditLog(templateRequest.UserId)
359361
err = impl.chartRepository.Update(tx, currentLatestChart)
360362
if err != nil {
361363
return err

0 commit comments

Comments
 (0)