mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
feat: refactor stage to multiple route design
This commit is contained in:
1 parent
52c6c6ab93
commit
e16b328892
6 files changed
+51
-32
No files matched your search
@@ -36,7 +36,6 @@ export async function newCommand(req, res) {
|
||||
}
|
||||
|
||||
session.lastActivityAt = new Date()
|
||||
await session.save()
|
||||
|
||||
const c = new Command({
|
||||
session,
|
||||
@@ -54,4 +53,5 @@ export async function newCommand(req, res) {
|
||||
console.log(response)
|
||||
|
||||
res.status(201).json(response)
|
||||
await session.save()
|
||||
}
|
||||
Reference in new issue
Block a user