tiny fixes

This commit is contained in:
Alireza Ahmadi
2024-03-01 13:10:06 +01:00
parent edc1038623
commit f5b609204e
4 changed files with 23 additions and 5 deletions
+5
View File
@@ -42,6 +42,11 @@ func updateAdmin(username string, password string) {
}
func showAdmin() {
err := database.InitDB(config.GetDBPath())
if err != nil {
fmt.Println(err)
return
}
userService := service.UserService{}
userModel, err := userService.GetFirstUser()
if err != nil {