mirror of
https://github.com/sphildreth/roadie
synced 2025-02-16 13:08:25 +00:00
v20180128.1
This commit is contained in:
parent
70b71df78e
commit
eb5878c29f
4 changed files with 9 additions and 3 deletions
|
@ -16,6 +16,8 @@ namespace Roadie.Library.Models.Users
|
|||
|
||||
public DateTime? Registered { get; set; }
|
||||
|
||||
public DateTime? LastActivity { get; set; }
|
||||
|
||||
public DateTime? LastLoginDate { get; set; }
|
||||
|
||||
public DateTime? LastApiAccessDate { get; set; }
|
||||
|
|
|
@ -301,7 +301,7 @@ namespace Roadie.Api.Services
|
|||
sw.Start();
|
||||
var errors = new List<Exception>();
|
||||
|
||||
var collections = this.DbContext.Collections.Where(x => x.IsLocked ?? false == false).ToArray();
|
||||
var collections = this.DbContext.Collections.Where(x => !x.IsLocked ?? false == false).ToArray();
|
||||
foreach(var collection in collections)
|
||||
{
|
||||
try
|
||||
|
|
|
@ -80,6 +80,9 @@ namespace Roadie.Api.Services
|
|||
sw.Start();
|
||||
|
||||
var result = (from u in this.DbContext.Users
|
||||
let lastActivity = (from ut in this.DbContext.UserTracks
|
||||
where ut.UserId == u.Id
|
||||
select ut.LastPlayed).Max()
|
||||
where (request.FilterValue.Length == 0 || (request.FilterValue.Length > 0 && (u.UserName.Contains(request.FilterValue))))
|
||||
select new UserList
|
||||
{
|
||||
|
@ -97,7 +100,8 @@ namespace Roadie.Api.Services
|
|||
LastUpdated = u.LastUpdated,
|
||||
RegisteredDate = u.RegisteredOn,
|
||||
LastLoginDate = u.LastLogin,
|
||||
LastApiAccessDate = u.LastApiAccess
|
||||
LastApiAccessDate = u.LastApiAccess,
|
||||
LastActivity = lastActivity
|
||||
});
|
||||
|
||||
UserList[] rows = null;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"Roadie.Api": {
|
||||
"commandName": "Project",
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
"ASPNETCORE_ENVIRONMENT": "Production"
|
||||
},
|
||||
"applicationUrl": "http://localhost:5123/"
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue