Merge pull request #77 from christianlouis/copilot/fix-unauthorized-error
Fix 401 Unauthorized on poll-status dashboard widget
This commit is contained in:
@@ -199,7 +199,11 @@ function dashboardApp() {
|
||||
|
||||
async getImapStatus() {
|
||||
try {
|
||||
const response = await fetch('/api/v1/admin/poll-status');
|
||||
const response = await fetch('/api/v1/poll-status');
|
||||
if (!response.ok) {
|
||||
console.error('Error checking IMAP status:', response.status);
|
||||
return;
|
||||
}
|
||||
const data = await response.json();
|
||||
|
||||
const statusIcon = document.getElementById('imap-status-icon');
|
||||
|
||||
Reference in New Issue
Block a user