mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
fix: save new created session
This commit is contained in:
1 parent
a711e08328
commit
66434ff897
5 files changed
+4
-299
No files matched your search
@@ -49,7 +49,7 @@ export async function createNewSession(
|
||||
|
||||
const newSession = new Session({
|
||||
user,
|
||||
quest,
|
||||
quest: quest.id,
|
||||
containerId: container.id,
|
||||
})
|
||||
|
||||
@@ -70,6 +70,7 @@ export async function createNewSession(
|
||||
progress.sessions.push(newSession._id)
|
||||
}
|
||||
await userProfile.save()
|
||||
await newSession.save()
|
||||
return newSession
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user