Skip to content

Commit

Permalink
Fixed warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rmaffitsancsoft committed Jun 21, 2024
1 parent 3cc4250 commit 38edea0
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/dotnet/HQ.Server/Services/TimeEntryServiceV1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

using FluentResults;

using HQ.Abstractions;
using HQ.Abstractions;
using HQ.Abstractions.Enumerations;
using HQ.Abstractions.Times;
Expand Down Expand Up @@ -235,7 +234,7 @@ public TimeEntryServiceV1(HQDbContext context)
t.ChargeCode != null && t.ChargeCode.Code.ToLower().Contains(request.Search.ToLower()) ||
t.Activity != null && t.Activity.Name.ToLower().Contains(request.Search.ToLower()) ||
t.Task != null && t.Task.ToLower().Contains(request.Search.ToLower()) ||
t.ChargeCode.Project.Name != null && t.ChargeCode.Project.Name.ToLower().Contains(request.Search.ToLower()) ||
t.ChargeCode!.Project!.Name.ToLower().Contains(request.Search.ToLower()) ||
t.ChargeCode.Project.Client.Name != null && t.ChargeCode.Project.Client.Name.ToLower().Contains(request.Search.ToLower())
);
}
Expand Down Expand Up @@ -336,10 +335,10 @@ public TimeEntryServiceV1(HQDbContext context)
Hours = t.Hours,
BillableHours = t.HoursApproved,
ChargeCode = t.ChargeCode.Code,
ProjectName = t.ChargeCode.Project.Name,
ProjectId = t.ChargeCode.Project.Id,
ClientName = t.ChargeCode.Project.Client.Name,
ClientId = t.ChargeCode.Project.Client.Id,
ProjectName = t.ChargeCode.Project != null ? t.ChargeCode.Project.Name : null,
ProjectId = t.ChargeCode.Project != null ? t.ChargeCode.Project.Id : null,
ClientName = t.ChargeCode.Project != null ? t.ChargeCode.Project.Client.Name : null,
ClientId = t.ChargeCode.Project != null ? t.ChargeCode.Project.Client.Id : null,
StaffName = t.Staff.Name,
StaffId = t.Staff.Id,
InvoiceId = t.InvoiceId,
Expand Down

0 comments on commit 38edea0

Please sign in to comment.