diff --git a/src/UrlTracker.Core/Database/ClientErrorRepository.cs b/src/UrlTracker.Core/Database/ClientErrorRepository.cs index f8f25d6b..63db4ef9 100644 --- a/src/UrlTracker.Core/Database/ClientErrorRepository.cs +++ b/src/UrlTracker.Core/Database/ClientErrorRepository.cs @@ -214,7 +214,7 @@ public async Task> GetMetaDataAsync(pa .LeftJoin(_referrerTableAlias) .On((l, r) => l.Referrer == r.Id, _mostCommonReferrerTableAlias, _referrerTableAlias); - sql.Where(e => clientErrors.Contains(e.ClientError), _occurrancesTableAlias) + sql.WhereIn(e => e.ClientError, clientErrors, _occurrancesTableAlias) .GroupBy(_occurrancesTableAlias, e => e.ClientError) .Append($", {SqlSyntax.GetQuotedTableName(_referrerTableAlias)}.{SqlSyntax.GetQuotedTableName("url")}");