Skip to content

Commit cb245d7

Browse files
add version
1 parent f05525b commit cb245d7

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

engine/rotationmanager/queries.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ SELECT
99
rot.time_zone,
1010
state.position,
1111
state.shift_start,
12+
state.version,
1213
ARRAY (
1314
SELECT
1415
p.id

engine/rotationmanager/updaterotation.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ func (db *DB) updateRotation(ctx context.Context, j *river.Job[UpdateArgs]) erro
7676
s := rotState{
7777
ShiftStart: row.ShiftStart.Time.In(loc),
7878
Position: int(row.Position.Int32),
79+
Version: int(row.Version.Int32),
7980
}
8081
adv := calcAdvance(ctx, row.Now, &r, s, len(row.Participants))
8182
if adv == nil {

gadb/queries.sql.go

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)