mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
chore: Enfore consistent file-name casing on all backend packages (#15755)
This commit is contained in:
committed by
GitHub
parent
66d339c0d8
commit
3a2a70f193
15
packages/workflow/src/global-state.ts
Normal file
15
packages/workflow/src/global-state.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { deepCopy } from './utils';
|
||||
|
||||
export interface GlobalState {
|
||||
defaultTimezone: string;
|
||||
}
|
||||
|
||||
let globalState: GlobalState = { defaultTimezone: 'America/New_York' };
|
||||
|
||||
export function setGlobalState(state: GlobalState) {
|
||||
globalState = state;
|
||||
}
|
||||
|
||||
export function getGlobalState() {
|
||||
return deepCopy(globalState);
|
||||
}
|
||||
Reference in New Issue
Block a user