Skip to content

Commit

Permalink
fix: typo & rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
HunorTotBagi committed Feb 5, 2025
1 parent dda8b89 commit 9b90152
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Microsoft.EntityFrameworkCore.Diagnostics;
using Microsoft.Extensions.Configuration;
using Timelines.Application.Data.Abstractions;
using Timelines.Infrastructure.Data.Repositories;

namespace Timelines.Infrastructure.Data.Extensions;

Expand All @@ -20,7 +21,7 @@ public static IServiceCollection AddInfrastructureServices

// Register DbContext interface
services.AddScoped<ITimelinesDbContext, TimelinesDbContext>();
services.AddScoped<ITimelinesRepository, ITimelinesRepository>();
services.AddScoped<ITimelinesRepository, TimelinesRepository>();

return services;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Timelines.Infrastructure.Data.Repositories;

public class TimelineRepository(ITimelinesDbContext dbContext) : ITimelinesRepository
public class TimelinesRepository(ITimelinesDbContext dbContext) : ITimelinesRepository
{
public async Task<Timeline> GetTimelineByIdAsync(TimelineId timelineId, CancellationToken cancellationToken)
{
Expand Down

0 comments on commit 9b90152

Please sign in to comment.