mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 07:48:37 +01:00
aggregation optimization
This commit is contained in:
@@ -16,7 +16,7 @@ const SessionSchema = new Schema<TSession>({
|
||||
flowHash: { type: String },
|
||||
duration: { type: Number, required: true, default: 0 },
|
||||
updated_at: { type: Date, default: () => Date.now() },
|
||||
created_at: { type: Date, default: () => Date.now() },
|
||||
created_at: { type: Date, default: () => Date.now(), index: true },
|
||||
})
|
||||
|
||||
export const SessionModel = model<TSession>('sessions', SessionSchema);
|
||||
|
||||
Reference in New Issue
Block a user