This commit is contained in:
Lncvrt committed 2026-03-24 20:00:11 -07:00
1 parent 67034897da
commit 48bb6bef76
1 file changed
+2 -6
+2 -6
View File
@@ -24,17 +24,13 @@ export const handler = async (context: Context) => {
if (versionId) if (versionId)
await db await db
.update(launcherVersionManifest) .update(launcherVersionManifest)
.set({ .set({ downloadCount: sql`${launcherVersionManifest.downloadCount} + 1` })
downloads: sql`${launcherVersionManifest.downloads} + 1`
})
.where(eq(launcherVersionManifest.id, versionId)) .where(eq(launcherVersionManifest.id, versionId))
if (modId) if (modId)
await db await db
.update(mods) .update(mods)
.set({ .set({ downloadCount: sql`${mods.downloadCount} + 1` })
downloadCount: sql`${mods.downloadCount} + 1`
})
.where(eq(mods.id, Number(modId))) .where(eq(mods.id, Number(modId)))
connection.end() connection.end()