mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-21 05:51:12 -05:00
Implement realtime queue fix
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user