MCPcopy
hub / github.com/directus/directus / hydratePendingResolution

Function hydratePendingResolution

app/src/stores/license.ts:190–201  ·  view source on GitHub ↗
(opts: LicensePendingResolutionInput = {})

Source from the content-addressed store, hash-verified

188 }
189
190 async function hydratePendingResolution(opts: LicensePendingResolutionInput = {}) {
191 if (!useUserStore().isAdmin) return;
192
193 loadingPendingResolution.value = true;
194
195 try {
196 const result: LicensePendingResolution[] | void = await sdk.request(generateLicensePendingResolution(opts));
197 pendingResolution.value = result ?? [];
198 } finally {
199 loadingPendingResolution.value = false;
200 }
201 }
202
203 async function resolve(payload: ApplyLicenseResolutionInput) {
204 await sdk.request(applyLicenseResolution(payload));

Callers

nothing calls this directly

Calls 1

requestMethod · 0.65

Tested by

no test coverage detected