mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-13 16:22:39 +10:00
game version re-ordering
This commit is contained in:
@ -16,6 +16,19 @@ export default defineEventHandler(async (h3) => {
|
||||
where: {
|
||||
id: gameId,
|
||||
},
|
||||
include: {
|
||||
versions: {
|
||||
orderBy: {
|
||||
versionIndex: "asc",
|
||||
},
|
||||
select: {
|
||||
versionIndex: true,
|
||||
versionName: true,
|
||||
platform: true,
|
||||
delta: true,
|
||||
}
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
if (!game)
|
||||
|
||||
Reference in New Issue
Block a user