feat: add LocationResult type and locationResults to Check model
## Changes - Add LocationResult interface to server check types - Add locationResults optional field to Check interface - Add GlobalpingCheckResult interface to network types - Add locationResultSchema subdocument and locationResults field to Mongoose Check schema - Fix formatting in pre-existing files (SettingsGlobalping, Settings index, UptimeMonitorsTable, monitorService) ## Benefits Non-destructive addition of the data model needed to store per-location Globalping results inside a single Check document. No existing behaviour is changed.
This commit is contained in:
1 parent
b7c9e2710a
commit
d25ce9e498
11 files changed
+87
-44
No files matched your search
@@ -120,7 +120,11 @@ const Settings = () => {
|
||||
if (isGlobalpingKeySet && !globalpingKeyHasBeenReset && !toSubmit.globalpingApiKey) {
|
||||
delete toSubmit.globalpingApiKey;
|
||||
}
|
||||
if (isEmailPasswordSet && !emailPasswordHasBeenReset && !toSubmit.systemEmailPassword) {
|
||||
if (
|
||||
isEmailPasswordSet &&
|
||||
!emailPasswordHasBeenReset &&
|
||||
!toSubmit.systemEmailPassword
|
||||
) {
|
||||
delete toSubmit.systemEmailPassword;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user