mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 03:20:12 +08:00
modified: packages/analytics/src/models/sessions.ts
modified: packages/analytics/src/models/users.ts
This commit is contained in:
1 parent
36932e1eb1
commit
ce538a049c
2 files changed
+2
-3
No files matched your search
@@ -74,7 +74,7 @@ export async function sessionDetail(id: string): Promise<SessionDetail> {
|
||||
.populate('user')
|
||||
.exec()) as unknown as SessionDocument
|
||||
const commands: CommandObject[] = (await Command.find({ session: id })).map(
|
||||
({ command, pwd, output, error, createdAt, stage }) => ({
|
||||
({ command, pwd, output, error, createdAt, stage }): CommandObject => ({
|
||||
command: command?.slice(0, 20),
|
||||
pwd,
|
||||
stage,
|
||||
|
||||
Reference in new issue
Block a user