Reset baseWidth and baseHeight in StoreConfig function

This commit is contained in:
cedricve
2025-08-12 04:47:50 +00:00
parent 6acdf258e7
commit 94cf361b55

View File

@@ -591,6 +591,10 @@ func StoreConfig(configDirectory string, config models.Config) error {
config.Encryption.PrivateKey = encryptionPrivateKey
}
// Reset the basewidth and baseheight
config.Capture.IPCamera.BaseWidth = 0
config.Capture.IPCamera.BaseHeight = 0
// Save into database
if os.Getenv("DEPLOYMENT") == "factory" || os.Getenv("MACHINERY_ENVIRONMENT") == "kubernetes" {
// Write to mongodb