Commit bc97b66f authored by Johnny's avatar Johnny

fix: serial updates

parent f15fd42e
......@@ -10,13 +10,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<!-- memos.metadata.head -->
<title>Memos</title>
<script>
// Prevent flash of light mode.
const appearance = localStorage.getItem("appearance");
if (appearance === `"dark"`) {
document.documentElement.classList.add("dark");
}
</script>
</head>
<body class="text-base w-full min-h-[100svh] bg-zinc-50 dark:bg-zinc-900">
<div id="root" class="relative w-full min-h-full"></div>
......
......@@ -41,8 +41,8 @@ const userStore = (() => {
};
const fetchUserByUsername = async (username: string) => {
const user = await userServiceClient.getUser({
name: username,
const user = await userServiceClient.getUserByUsername({
username,
});
state.setPartial({
userMapByName: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment