v20180128.1

This commit is contained in:
Steven Hildreth 2019-01-28 21:43:55 -06:00
parent 70b71df78e
commit eb5878c29f
4 changed files with 9 additions and 3 deletions

View file

@ -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; }

View file

@ -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

View file

@ -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;

View file

@ -3,7 +3,7 @@
"Roadie.Api": {
"commandName": "Project",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
"ASPNETCORE_ENVIRONMENT": "Production"
},
"applicationUrl": "http://localhost:5123/"
}