(text)
| 4491 | } |
| 4492 | } |
| 4493 | |
| 4494 | async function refreshWiki() { |
| 4495 | const data = await api("/api/wiki/refresh", { |
| 4496 | method: "POST", |
| 4497 | timeoutMs: API_TIMEOUT_LONG_MS, |
| 4498 | body: JSON.stringify({ user_id: currentUser() }) |
| 4499 | }); |
| 4500 | await loadWiki(); |
| 4501 | const daily = data.daily_notes || {}; |
| 4502 | const noteCount = Array.isArray(daily.daily_notes) ? daily.daily_notes.length : 0; |
| 4503 | const errorCount = Array.isArray(daily.errors) ? daily.errors.length : 0; |
| 4504 | const detail = [ |