Skip to content

Commit

Permalink
fix: Send platform as int in scan message
Browse files Browse the repository at this point in the history
The backend fails when a platform is sent as a string, and it's using
PostgreSQL as the database engine. This change fixes the frontend to
correctly send the platform_id as an integer value.
  • Loading branch information
adamantike committed Feb 2, 2025
1 parent 881a1d1 commit 2babafd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/Gallery/FabOverlay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async function onScan() {
if (!socket.connected) socket.connect();
socket.emit("scan", {
platforms: [route.params.platform],
platforms: [Number(route.params.platform)],
roms_ids: romsStore.selectedRoms.map((r) => r.id),
type: "quick", // Quick scan so we can filter by selected roms
apis: heartbeat.getMetadataOptions().map((s) => s.value),
Expand Down

0 comments on commit 2babafd

Please sign in to comment.