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:
gorkem-bwl committed 2026-02-19 10:19:30 -05:00
1 parent e39b44db6c
commit 134c2ebbf4
1 file changed
+1
@@ -38,6 +38,7 @@ class MongoSettingsRepository implements ISettingsRepository {
systemEmailRequireTLS: doc.systemEmailRequireTLS ?? false,
systemEmailRejectUnauthorized: doc.systemEmailRejectUnauthorized ?? true,
showURL: doc.showURL ?? false,
globalpingApiKey: doc.globalpingApiKey ?? undefined,
singleton: doc.singleton,
version: doc.version ?? 1,
globalThresholds: doc.globalThresholds ?? undefined,