Implement realtime queue fix

This commit is contained in:
gpt-engineer-app[bot]
2025-10-09 13:54:39 +00:00
parent 57368eb309
commit 1d45294703
5 changed files with 200 additions and 11 deletions

View File

@@ -150,6 +150,12 @@ export function useAdminSettings() {
return getSettingValue('notifications.recipients', []);
};
const getUseRealtimeQueue = (): boolean => {
const value = getSettingValue('system.use_realtime_queue', 'true');
const cleanValue = typeof value === 'string' ? value.replace(/"/g, '') : value;
return cleanValue === 'true' || cleanValue === true;
};
return {
settings,
isLoading,
@@ -172,5 +178,6 @@ export function useAdminSettings() {
getAdminPanelPollInterval,
getAutoRefreshStrategy,
getPreserveInteractionState,
getUseRealtimeQueue,
};
}