fix: report backlog sync errors in dashboard

This commit is contained in:
MythEclipse
2026-05-15 18:10:30 +07:00
parent 76470a5129
commit 575302db57

View File

@@ -130,7 +130,7 @@
await apiRequest('/api/backlog-sync', { await apiRequest('/api/backlog-sync', {
method: 'POST', method: 'POST',
body: JSON.stringify({ guildId: state.selectedTextGuild, channelId: state.selectedTextChannel }), body: JSON.stringify({ guildId: state.selectedTextGuild, channelId: state.selectedTextChannel }),
}).catch((error) => logger.warn('Backlog sync failed:', error.message)); }).catch((error) => showError(`Backlog sync failed: ${error.message}`));
} }
await fetchText().catch((error) => showError(error.message)); await fetchText().catch((error) => showError(error.message));
} }