feat/Update_Controllers_to_Allow_for_Premium_Membership
This commit is contained in:
@@ -163,7 +163,9 @@ public sealed class AiWorkspaceService : IAiWorkspaceService
|
||||
{
|
||||
var q = _db.AiInteractions.Where(x => x.OwnerUserId == ownerUserId && x.JobApplicationId == jobApplicationId);
|
||||
if (!string.IsNullOrWhiteSpace(module)) { var m = module.Trim().ToLowerInvariant(); q = q.Where(x => x.Module == m); }
|
||||
return await q.OrderByDescending(x => x.CreatedAtUtc).ToListAsync(ct);
|
||||
return _db.Database.IsSqlite()
|
||||
? (await q.ToListAsync(ct)).OrderByDescending(x => x.CreatedAtUtc).ToList()
|
||||
: await q.OrderByDescending(x => x.CreatedAtUtc).ToListAsync(ct);
|
||||
}
|
||||
|
||||
public Task<AiInteraction?> GetAsync(string ownerUserId, int id, CancellationToken ct) =>
|
||||
|
||||
Reference in New Issue
Block a user