feat(license-review): implement actions resolution for seafarer certificates and add tests

This commit is contained in:
Nati
2026-08-31 13:08:10 +00:00
parent 16ac650f5f
commit 5b3672061a
4 changed files with 98 additions and 3 deletions

View File

@@ -1007,8 +1007,17 @@ export const licensingApi = baseApi
url: `/license-application-review/${id}/issue-certificate`,
method: 'POST',
}),
// The certificate this writes is what `License` lists read, so the
// issued register and the holder's own licences refresh with it —
// without them an officer issues a certificate that nobody's list shows.
invalidatesTags: (_r, error, id) =>
error ? [] : [itemTag('LicenseApplication', id), listTag('ApplicationQueue')],
error
? []
: [
itemTag('LicenseApplication', id),
listTag('ApplicationQueue'),
listTag('License'),
],
}),
// ------------------------------------------------------------- pickup