Skip to content

Commit 883cbee

Browse files
committed
Refactor BestillingRepository to simplify query by removing unused testnorgeIdent field
1 parent 7926289 commit 883cbee

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

apps/dolly-backend/src/main/java/no/nav/dolly/repository/BestillingRepository.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,14 +145,10 @@ select count(*) personer,
145145
when b.gjenopprettet_fra_ident is not null then 'GJENOPPRETTING'
146146
when b.opprett_fra_gruppe is not null then 'GJENOPPRETTING'
147147
else 'NYBESTILLING'
148-
end as gjenopprettStatus,
149-
case
150-
when b.pdl_import is not null then true
151-
else false
152-
end as testnorgeIdent
148+
end as gjenopprettStatus
153149
from bestilling b
154150
join bestilling_progress bp on b.id = bp.bestilling_id
155-
group by dato, gjenopprettStatus, testnorgeIdent
151+
group by dato, gjenopprettStatus
156152
order by dato desc
157153
""")
158154
Flux<BestillingerFragment> findBestillingerOrderBySistOppdatert();

0 commit comments

Comments
 (0)