From dcf456bf0ab4045674a75da057c57977d413d25c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20J=C3=B8rgen=20Skogstad?= Date: Mon, 29 Jul 2024 14:22:35 +0200 Subject: [PATCH] Ignore query filters --- .../V1/ServiceOwner/Dialogs/Commands/Purge/PurgeDialogCommand.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Commands/Purge/PurgeDialogCommand.cs b/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Commands/Purge/PurgeDialogCommand.cs index 82e01d838..c9f148d62 100644 --- a/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Commands/Purge/PurgeDialogCommand.cs +++ b/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Commands/Purge/PurgeDialogCommand.cs @@ -43,6 +43,7 @@ public async Task Handle(PurgeDialogCommand request, Cancella .Include(x => x.Attachments) .Include(x => x.Activities) .Where(x => resourceIds.Contains(x.ServiceResource)) + .IgnoreQueryFilters() .FirstOrDefaultAsync(x => x.Id == request.DialogId, cancellationToken); if (dialog is null)