Skip to content

Commit c67e0c4

Browse files
committed
fix(server): use unredacted databaseBackup in full health response
The full-details (authenticated board) health response should return the unredacted backup health with lastBackup, lastFailure, and real warning messages. Only the redacted (non-board) response uses the sanitized version.
1 parent 646fb88 commit c67e0c4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

server/src/routes/health.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,8 @@ export function healthRoutes(
332332
companyDeletionEnabled: opts.companyDeletionEnabled,
333333
},
334334
serverInfo,
335-
...(databaseBackup ? { databaseBackup: redactedDatabaseBackupHealth(databaseBackup) } : {}),
336-
...(warnings ? { warnings: warnings.map(redactedDatabaseBackupWarning) } : {}),
335+
...(databaseBackup ? { databaseBackup } : {}),
336+
...(warnings ? { warnings } : {}),
337337
...(devServer ? { devServer } : {}),
338338
...(workspaceReadiness ? { workspace: workspaceReadiness } : {}),
339339
...(cloud ? { cloud } : {}),

0 commit comments

Comments
 (0)