Skip to content

Commit

Permalink
docs: add comment to clarify cleanupData function purpose in schedule…
Browse files Browse the repository at this point in the history
… data management
  • Loading branch information
mastercactapus committed Dec 17, 2024
1 parent 8592ff8 commit 86f7b84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions engine/cleanupmanager/scheddata.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ func (db *DB) CleanupScheduleData(ctx context.Context, j *river.Job[SchedDataArg
return nil
}

// cleanupData will cleanup the schedule data, removing temporary-schedules that occur in the past; and removing shifts for users that no longer exist.
func cleanupData(data *schedule.Data, validUsers []uuid.UUID, now time.Time) (changed bool) {
newTempSched := data.V1.TemporarySchedules[:0]
for _, temp := range data.V1.TemporarySchedules {
Expand Down

0 comments on commit 86f7b84

Please sign in to comment.