Skip to content

Commit

Permalink
fix error for apple music importers
Browse files Browse the repository at this point in the history
  • Loading branch information
th0mk committed Apr 20, 2024
1 parent f970052 commit 9434529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FMBot.Persistence/Repositories/PlayRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public static async Task<ICollection<UserPlay>> GetUserPlaysWithinTimeRange(int
end ??= DateTime.UtcNow;

const string sql = "SELECT * FROM public.user_plays WHERE user_id = @userId " +
"AND time_played >= @start AND time_played <= @end " +
"AND time_played >= @start AND time_played <= @end AND artist_name IS NOT NULL " +
"ORDER BY time_played DESC ";
DefaultTypeMap.MatchNamesWithUnderscores = true;
return (await connection.QueryAsync<UserPlay>(sql, new
Expand Down

0 comments on commit 9434529

Please sign in to comment.