Skip to content

Commit

Permalink
fix update not getting latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
Fleeym committed Jun 24, 2024
1 parent a72ef04 commit 572c386
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/models/mod_entity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,7 @@ impl Mod {
SELECT m.id,
mv.id as mod_version_id,
mv.version as inner_version,
row_number() over (partition by m.id order by mv.version desc) rn
row_number() over (partition by m.id order by mv.id desc) rn
FROM mods m
INNER JOIN mod_versions mv ON mv.mod_id = m.id
INNER JOIN mod_version_statuses mvs ON mvs.mod_version_id = mv.id
Expand Down

0 comments on commit 572c386

Please sign in to comment.