Skip to content

Commit a1094f6

Browse files
committed
fixing database global settings
1 parent f898a09 commit a1094f6

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

CHANGELOG.MD

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [3.3.1-rc93] - 2025-08-27
8+
9+
### Changed
10+
11+
- Updated the global setting initializer to properly update from global state
12+
713
## [3.3.1-rc92] - 2025-08-27
814

915
### Changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.3.1-rc91
1+
3.3.1-rc93

mythic-docker/src/database/initialize.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ func setGlobalSettings() {
207207
logging.LogError(err, "Failed to scan server_config global setting into MythicJSONText")
208208
}
209209
globalSetting[i].Setting = newSetting
210-
_, err = DB.NamedExec(`UPDATE global_setting SET setting=:setting WHERE id=:id`, globalSetting)
210+
_, err = DB.NamedExec(`UPDATE global_setting SET setting=:setting WHERE id=:id`, globalSetting[i])
211211
if err != nil {
212212
logging.LogError(err, "Failed to update global setting")
213213
}

mythic-docker/src/utils/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/spf13/viper"
1212
)
1313

14-
const mythicServerVersion = "3.3.1-rc92"
14+
const mythicServerVersion = "3.3.1-rc93"
1515

1616
type Config struct {
1717
// server configuration

0 commit comments

Comments
 (0)