fix: typo in the log message (#4769)

This commit is contained in:
hulk 2024-04-02 23:09:05 +08:00 committed by GitHub
parent 8ad827130e
commit a47d3289d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -203,7 +203,7 @@ func StartNewVersion(
) (*ConfigVersion, *model.ApiError) {
// create a new version
cfg := NewConfigversion(eleType)
cfg := NewConfigVersion(eleType)
// insert new config and elements into database
err := m.insertConfig(ctx, userId, cfg, elementIds)

View File

@ -45,7 +45,7 @@ type ConfigVersion struct {
CreatedAt time.Time `json:"createdAt" db:"created_at"`
}
func NewConfigversion(typeDef ElementTypeDef) *ConfigVersion {
func NewConfigVersion(typeDef ElementTypeDef) *ConfigVersion {
return &ConfigVersion{
ID: uuid.NewString(),
ElementType: typeDef,

View File

@ -87,7 +87,7 @@ func main() {
if len(auth.JwtSecret) == 0 {
zap.L().Warn("No JWT secret key is specified.")
} else {
zap.L().Info("No JWT secret key set successfully.")
zap.L().Info("JWT secret key set successfully.")
}
server, err := app.NewServer(serverOptions)