Skip to content

Commit

Permalink
Fix project codegen (#4998)
Browse files Browse the repository at this point in the history
Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>
  • Loading branch information
khanhtc1202 committed Jun 26, 2024
1 parent d4689bf commit ce9bc16
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
9 changes: 9 additions & 0 deletions pkg/model/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,15 @@ func (p *Project) SetStaticAdmin(username, password string) error {
return nil
}

func (x *Project) GetStaticAdminUsername() string {
var username = ""
staticAdmin := x.GetStaticAdmin()
if staticAdmin != nil {
username = staticAdmin.GetUsername()
}
return username
}

// RedactSensitiveData redacts sensitive data.
func (p *Project) RedactSensitiveData() {
if p.StaticAdmin != nil {
Expand Down
11 changes: 1 addition & 10 deletions pkg/model/project.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ce9bc16

Please sign in to comment.