Skip to content

Commit

Permalink
Fix query call.
Browse files Browse the repository at this point in the history
  • Loading branch information
emmiegit committed Jan 27, 2024
1 parent bf1a2b1 commit 8bef8c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion queries/progress.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ SELECT last_member_offset FROM site_progress

-- :name update_last_member_offset :affected
UPDATE site_progress
SET last_member_offset = MAX(last_member_offset, :last_offset)
SET last_member_offset = max(last_member_offset, :last_offset)
WHERE site_slug = :site_slug;
2 changes: 1 addition & 1 deletion yellowstone/job/index_site_members.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ def run(core: "BackupDispatcher", data: SiteMemberJob) -> None:
core.job.fetch_user({"user_id": member.id})

# Save member page progress
core.database.update_last_member_offset(last_offset=offset)
core.database.update_last_member_offset(site_slug=site_slug, last_offset=offset)

0 comments on commit 8bef8c8

Please sign in to comment.