(
command: 'static' | 'full',
useCache: boolean,
data: Awaited<ReturnType<typeof loadExtensionsData>>,
changed: boolean
)
| 80 | await persistQuickUpdates(true); |
| 81 | } |
| 82 | |
| 83 | async function finalizeFullUpdate( |
| 84 | command: 'static' | 'full', |
| 85 | useCache: boolean, |
| 86 | data: Awaited<ReturnType<typeof loadExtensionsData>>, |
| 87 | changed: boolean |
| 88 | ): Promise<void> { |
| 89 | if (!changed) { |
| 90 | await persistQuickUpdates(false); |
| 91 | return; |
| 92 | } |
| 93 | |
| 94 | await saveExtensionsData(data); |
| 95 | logger.info('task', 'extensions_json updated=true'); |
| 96 | |
| 97 | if (command === 'full') { |
| 98 | await generateDataJson(data); |
| 99 | if (useCache) await refreshMetadata(await generateCacheKey(), CACHE_PATHS); |
| 100 | await updateMeilisearch(); |
| 101 | if (useCache) await saveStaticCache(); |
| 102 | } |
| 103 | |
| 104 | await persistQuickUpdates(true); |
| 105 | } |
| 106 | |
| 107 | function reportMaterializeFailures( |
no test coverage detected