Skip to main content

GlobalSettingsService

GlobalSettingsService

Contains methods relating to the GlobalSettings entity.

Signature
class GlobalSettingsService {
constructor(connection: TransactionalConnection, configService: ConfigService, customFieldRelationService: CustomFieldRelationService, eventBus: EventBus, requestCache: RequestContextCacheService)
getSettings(ctx: RequestContext) => Promise<GlobalSettings>;
updateSettings(ctx: RequestContext, input: UpdateGlobalSettingsInput) => Promise<GlobalSettings>;
}

constructor

method
(connection: TransactionalConnection, configService: ConfigService, customFieldRelationService: CustomFieldRelationService, eventBus: EventBus, requestCache: RequestContextCacheService) => GlobalSettingsService

getSettings

method
(ctx: RequestContext) => Promise<GlobalSettings>

Returns the GlobalSettings entity.

updateSettings

method
(ctx: RequestContext, input: UpdateGlobalSettingsInput) => Promise<GlobalSettings>