diff --git a/src/Application/Features/QualityAssurance/Queries/GetPqaEntryById.cs b/src/Application/Features/QualityAssurance/Queries/GetPqaEntryById.cs index 5c031ecd..c8d299fa 100644 --- a/src/Application/Features/QualityAssurance/Queries/GetPqaEntryById.cs +++ b/src/Application/Features/QualityAssurance/Queries/GetPqaEntryById.cs @@ -20,7 +20,7 @@ public class Handler(IUnitOfWork unitOfWork, IMapper mapper) : IRequestHandler> Handle(Query request, CancellationToken cancellationToken) { var entry = await unitOfWork.DbContext.EnrolmentPqaQueue - .Where(a => a.Id == request.Id && request.CurrentUser!.TenantId!.StartsWith(a.TenantId)) + .Where(a => a.Id == request.Id && a.TenantId.StartsWith(request.CurrentUser!.TenantId!)) .ProjectTo(mapper.ConfigurationProvider) .FirstOrDefaultAsync(cancellationToken);