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)
await db
.update(launcherVersionManifest)
.set({
downloads: sql`${launcherVersionManifest.downloads} + 1`
})
.set({ downloadCount: sql`${launcherVersionManifest.downloadCount} + 1` })
.where(eq(launcherVersionManifest.id, versionId))
if (modId)
await db
.update(mods)
.set({
downloadCount: sql`${mods.downloadCount} + 1`
})
.set({ downloadCount: sql`${mods.downloadCount} + 1` })
.where(eq(mods.id, Number(modId)))
connection.end()