oops
This commit is contained in:
1 file changed
+2
-6
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user