{
const formData = new FormData();
if (rom.igdb_id) formData.append("igdb_id", rom.igdb_id.toString());
@@ -143,7 +145,11 @@ async function updateRom({
if (rom.artwork) formData.append("artwork", rom.artwork);
return api.put(`/roms/${rom.id}`, formData, {
- params: { rename_as_source: renameAsSource, remove_cover: removeCover },
+ params: {
+ rename_as_source: renameAsSource,
+ remove_cover: removeCover,
+ unmatch_metadata: unmatch,
+ },
});
}
diff --git a/frontend/src/views/EmulatorJS/Base.vue b/frontend/src/views/EmulatorJS/Base.vue
index b0be98c97..2e57ef995 100644
--- a/frontend/src/views/EmulatorJS/Base.vue
+++ b/frontend/src/views/EmulatorJS/Base.vue
@@ -68,12 +68,12 @@ onMounted(async () => {
} else if (rom.value.user_states) {
// Otherwise auto select most recent state by last updated date
stateRef.value = rom.value.user_states?.sort((a, b) =>
- b.updated_at.localeCompare(a.updated_at)
+ b.updated_at.localeCompare(a.updated_at),
)[0];
}
const storedBiosID = localStorage.getItem(
- `player:${rom.value.platform_slug}:bios_id`
+ `player:${rom.value.platform_slug}:bios_id`,
);
if (storedBiosID) {
biosRef.value =
@@ -82,7 +82,7 @@ onMounted(async () => {
}
const storedCore = localStorage.getItem(
- `player:${rom.value.platform_slug}:core`
+ `player:${rom.value.platform_slug}:core`,
);
if (storedCore) {
coreRef.value = storedCore;
diff --git a/frontend/src/views/Gallery/Collection.vue b/frontend/src/views/Gallery/Collection.vue
index 6ba85da27..bf2e5b615 100644
--- a/frontend/src/views/Gallery/Collection.vue
+++ b/frontend/src/views/Gallery/Collection.vue
@@ -69,7 +69,7 @@ async function fetchRoms() {
timeout: 4000,
});
console.error(
- `Couldn't fetch roms for collection ID ${currentCollection.value?.id}: ${error}`
+ `Couldn't fetch roms for collection ID ${currentCollection.value?.id}: ${error}`,
);
noCollectionError.value = true;
})
@@ -87,28 +87,28 @@ function setFilters() {
...new Set(
romsStore.filteredRoms
.flatMap((rom) => rom.genres.map((genre) => genre))
- .sort()
+ .sort(),
),
]);
galleryFilterStore.setFilterFranchises([
...new Set(
romsStore.filteredRoms
.flatMap((rom) => rom.franchises.map((franchise) => franchise))
- .sort()
+ .sort(),
),
]);
galleryFilterStore.setFilterCompanies([
...new Set(
romsStore.filteredRoms
.flatMap((rom) => rom.companies.map((company) => company))
- .sort()
+ .sort(),
),
]);
galleryFilterStore.setFilterCollections([
...new Set(
romsStore.filteredRoms
.flatMap((rom) => rom.collections.map((collection) => collection))
- .sort()
+ .sort(),
),
]);
}
@@ -135,7 +135,7 @@ function onGameClick(emitData: { rom: SimpleRom; event: MouseEvent }) {
}
if (emitData.event.shiftKey) {
const [start, end] = [romsStore.lastSelectedIndex, index].sort(
- (a, b) => a - b
+ (a, b) => a - b,
);
if (romsStore.selectedRoms.includes(emitData.rom)) {
for (let i = start + 1; i < end; i++) {
@@ -147,7 +147,7 @@ function onGameClick(emitData: { rom: SimpleRom; event: MouseEvent }) {
}
}
romsStore.updateLastSelected(
- romsStore.selectedRoms.includes(emitData.rom) ? index : index - 1
+ romsStore.selectedRoms.includes(emitData.rom) ? index : index - 1,
);
} else {
romsStore.updateLastSelected(index);
diff --git a/frontend/src/views/Login.vue b/frontend/src/views/Login.vue
index 89eaae4db..ab89c816d 100644
--- a/frontend/src/views/Login.vue
+++ b/frontend/src/views/Login.vue
@@ -42,7 +42,7 @@ async function login() {
});
console.error(
- `[${response.status} ${response.statusText}] ${errorMessage}`
+ `[${response.status} ${response.statusText}] ${errorMessage}`,
);
})
.finally(() => {
@@ -117,7 +117,9 @@ async function login() {
- {{ heartbeatStore.value.VERSION }}
+ {{
+ heartbeatStore.value.VERSION
+ }}