MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / loadSettingRecord

Function loadSettingRecord

core/cmd/server/cmd/user.go:116–122  ·  view source on GitHub ↗
(db *gorm.DB, key string)

Source from the content-addressed store, hash-verified

114}
115
116func loadSettingRecord(db *gorm.DB, key string) (setting, error) {
117 var record setting
118 if err := db.Where("key = ?", key).First(&record).Error; err != nil {
119 return setting{}, err
120 }
121 return record, nil
122}
123
124func createdAtString(t time.Time) string {
125 if t.IsZero() {

Callers 1

listCommunityUsersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected