modified: packages/analytics/src/models/sessions.ts

modified:   packages/analytics/src/models/users.ts
This commit is contained in:
chreamy committed 2024-03-05 01:51:30 -06:00
1 parent 36932e1eb1
commit ce538a049c
2 files changed
+2 -3

No files matched your search

+1 -1
View File
@@ -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,