[api] Fixed session loading
This commit is contained in:
parent
fd918f5bb7
commit
979eab05af
|
@ -49,7 +49,7 @@ export const useMainStore = defineStore({
|
||||||
const sessionStore = useSessionStore();
|
const sessionStore = useSessionStore();
|
||||||
const session = await sessionStore.getSession(this.session.token);
|
const session = await sessionStore.getSession(this.session.token);
|
||||||
if (session) {
|
if (session) {
|
||||||
this.session = this.session;
|
this.session = session;
|
||||||
const userStore = useUserStore();
|
const userStore = useUserStore();
|
||||||
const user = await userStore.getUser(this.session.userid);
|
const user = await userStore.getUser(this.session.userid);
|
||||||
if (user) {
|
if (user) {
|
||||||
|
|
Loading…
Reference in New Issue