mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-03 00:33:49 +03:00
fix profileImageUrl
This commit is contained in:
parent
3ac06fbce5
commit
55c214eae6
@ -2,6 +2,7 @@ import { registerEvent } from "../register-event";
|
|||||||
import { HydraApi } from "@main/services/hydra-api";
|
import { HydraApi } from "@main/services/hydra-api";
|
||||||
import { UserProfile } from "@types";
|
import { UserProfile } from "@types";
|
||||||
import { userAuthRepository } from "@main/repository";
|
import { userAuthRepository } from "@main/repository";
|
||||||
|
import { logger } from "@main/services";
|
||||||
|
|
||||||
const getMe = async (
|
const getMe = async (
|
||||||
_event: Electron.IpcMainInvokeEvent
|
_event: Electron.IpcMainInvokeEvent
|
||||||
@ -14,7 +15,7 @@ const getMe = async (
|
|||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
displayName: me.displayName,
|
displayName: me.displayName,
|
||||||
profileImageUrl: me.displayName,
|
profileImageUrl: me.profileImageUrl,
|
||||||
userId: me.id,
|
userId: me.id,
|
||||||
},
|
},
|
||||||
["id"]
|
["id"]
|
||||||
@ -22,7 +23,8 @@ const getMe = async (
|
|||||||
|
|
||||||
return me;
|
return me;
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch((err) => {
|
||||||
|
logger.error("getMe", err);
|
||||||
return userAuthRepository.findOne({ where: { id: 1 } });
|
return userAuthRepository.findOne({ where: { id: 1 } });
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user