Skip to content

Commit

Permalink
Fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bradystroud committed Nov 8, 2023
1 parent 1acccdf commit ca15800
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/TimesheetGPT.Core/Models/Summary.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
namespace TimesheetGPT.Core.Models;

public class SummaryWithRaw
public class Summary
{
public List<Email> Emails { get; set; }
public List<Meeting> Meetings { get; set; }
public string Text { get; set; }
public string ModelUsed { get; set; }
public List<Email> Emails { get; set; } = [];
public List<Meeting> Meetings { get; set; } = [];
public string? Text { get; set; }
public string? ModelUsed { get; set; }
}
4 changes: 2 additions & 2 deletions src/TimesheetGPT.Core/Services/TimesheetService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace TimesheetGPT.Core.Services;

public class TimesheetService(IAiService aiService, GraphServiceClient graphServiceClient)
{
public async Task<SummaryWithRaw> GenerateSummary(DateTime date, string extraPrompts = "", string additionalNotes = "", CancellationToken ct = default)
public async Task<Summary> GenerateSummary(DateTime date, string extraPrompts = "", string additionalNotes = "", CancellationToken ct = default)
{
var graphService = new GraphService(graphServiceClient);

Expand All @@ -17,7 +17,7 @@ public async Task<SummaryWithRaw> GenerateSummary(DateTime date, string extraPro

var summary = await aiService.GetSummaryBoring(emails, meetings, extraPrompts, ct, additionalNotes);

return new SummaryWithRaw
return new Summary
{
Emails = emails,
Meetings = meetings,
Expand Down

0 comments on commit ca15800

Please sign in to comment.