fix: map globalpingApiKey in settings repository toEntity
The MongoSettingsRepository.toEntity method was missing the globalpingApiKey field, causing GlobalpingService to always report the API key as not configured.
This commit is contained in:
1 parent
e39b44db6c
commit
134c2ebbf4
1 file changed
+1
@@ -38,6 +38,7 @@ class MongoSettingsRepository implements ISettingsRepository {
|
|||||||
systemEmailRequireTLS: doc.systemEmailRequireTLS ?? false,
|
systemEmailRequireTLS: doc.systemEmailRequireTLS ?? false,
|
||||||
systemEmailRejectUnauthorized: doc.systemEmailRejectUnauthorized ?? true,
|
systemEmailRejectUnauthorized: doc.systemEmailRejectUnauthorized ?? true,
|
||||||
showURL: doc.showURL ?? false,
|
showURL: doc.showURL ?? false,
|
||||||
|
globalpingApiKey: doc.globalpingApiKey ?? undefined,
|
||||||
singleton: doc.singleton,
|
singleton: doc.singleton,
|
||||||
version: doc.version ?? 1,
|
version: doc.version ?? 1,
|
||||||
globalThresholds: doc.globalThresholds ?? undefined,
|
globalThresholds: doc.globalThresholds ?? undefined,
|
||||||
|
|||||||
Reference in new issue
Block a user