Merge pull request #720 from hydralauncher/ci/sentry

ci: adding sentry
This commit is contained in:
Chubby Granny Chaser
2024-06-28 20:55:42 +01:00
committed by GitHub
15 changed files with 1253 additions and 17 deletions

View File

@@ -1,4 +1,5 @@
import { registerEvent } from "../register-event";
import * as Sentry from "@sentry/electron/main";
import { HydraApi } from "@main/services";
import { UserProfile } from "@types";
import { userAuthRepository } from "@main/repository";
@@ -21,6 +22,8 @@ const getMe = async (
["id"]
);
Sentry.setUser({ id: me.id, username: me.username });
return me;
})
.catch((err) => {