mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
refactor: userController and add req user type
This commit is contained in:
1 parent
4c421b4cb3
commit
c912319967
8 files changed
+49
-23
No files matched your search
@@ -155,14 +155,10 @@ export default class CommandHandler extends SessionHandler {
|
||||
this.handleEvent()
|
||||
this.handleCommand()
|
||||
|
||||
console.log(stages)
|
||||
|
||||
const matches = await Promise.all(
|
||||
stages.map((stage) => stage.condition && this.isMatch(stage.condition))
|
||||
)
|
||||
|
||||
console.log(matches)
|
||||
|
||||
const stage = stages.find((_, i) => matches[i])
|
||||
if (stage) {
|
||||
const response = this.execute(stage)
|
||||
|
||||
Reference in new issue
Block a user