OpenAPI root url fix

This commit is contained in:
wayneshn
2026-03-21 23:37:30 +01:00
parent e5e119528f
commit d99494e030
3 changed files with 6 additions and 4 deletions

View File

@@ -15,7 +15,7 @@
},
"servers": [
{
"url": "http://localhost:3001",
"url": "http://localhost:3000",
"description": "Local development"
}
],

View File

@@ -31,7 +31,7 @@ const options = {
},
servers: [
{
url: 'http://localhost:3001',
url: 'http://localhost:3000',
description: 'Local development',
},
],

View File

@@ -164,7 +164,8 @@
const response = await api(`/enterprise/integrity-report/${email.id}/pdf`);
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
const res = JSON.parse(await response.text());
throw new Error(res.message);
}
const blob = await response.blob();
@@ -178,10 +179,11 @@
a.remove();
} catch (error) {
console.error('Integrity report download failed:', error);
setAlert({
type: 'error',
title: $t('app.archive.integrity_report_download_error'),
message: '',
message: (error as string) || '',
duration: 5000,
show: true,
});