Skip to content

Commit

Permalink
fix full update removing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
th0mk committed Jul 23, 2023
1 parent 83d4f6a commit 4792649
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 @@ -91,7 +91,7 @@ public static async Task ReplaceAllPlays(IReadOnlyList<UserPlay> playsToInsert,
private static async Task RemoveAllCurrentLastFmPlays(int userId, NpgsqlConnection connection)
{
await using var deletePlays = new NpgsqlCommand("DELETE FROM public.user_plays " +
"WHERE user_id = @userId ", connection);
"WHERE user_id = @userId AND (play_source IS NULL OR play_source <> 0);", connection);

deletePlays.Parameters.AddWithValue("userId", userId);

Expand Down

0 comments on commit 4792649

Please sign in to comment.