only take sessions from last month
This commit is contained in:
@@ -46,7 +46,7 @@ namespace CodeEditorApi.Helpers
|
|||||||
res.Add(GetSession(folder));
|
res.Add(GetSession(folder));
|
||||||
}
|
}
|
||||||
|
|
||||||
return res.OrderByDescending(x => x.Timestamp).ToArray();
|
return res.Where(x => x.Timestamp > DateTime.UtcNow.AddMonths(-1)).OrderByDescending(x => x.Timestamp).ToArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static SessionData[] Get(Guid sessionId)
|
public static SessionData[] Get(Guid sessionId)
|
||||||
|
|||||||
Reference in New Issue
Block a user