feat: remove wine prefix on pre search

This commit is contained in:
Zamitto 2024-10-28 19:50:16 -03:00
parent 9f9a4eba18
commit d73a46aac2

View file

@ -8,7 +8,6 @@ import { HydraApi } from "../hydra-api";
import { getUnlockedAchievements } from "@main/events/user/get-unlocked-achievements";
import { Game } from "@main/entity";
import { achievementsLogger } from "../logger";
import { SubscriptionRequiredError } from "@shared";
const saveAchievementsOnLocal = async (
objectId: string,
@ -132,9 +131,7 @@ export const mergeAchievements = async (
);
})
.catch((err) => {
if (!(err instanceof SubscriptionRequiredError)) {
achievementsLogger.error(err);
}
return saveAchievementsOnLocal(
game.objectID,