Statistics api again
This commit is contained in:
parent
d46c5fc05f
commit
6c4fe7bda3
1 changed files with 4 additions and 0 deletions
|
@ -38,6 +38,10 @@ func GetStatistics(c *fiber.Ctx) error {
|
|||
return c.Status(403).SendString("Unauthorized access")
|
||||
}
|
||||
|
||||
if pm && userNameParam != "" {
|
||||
username = userNameParam
|
||||
}
|
||||
|
||||
// Retrieve statistics for the project from the database
|
||||
statistics, err := db.GetDb(c).ReportStatistics(username, projectName)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue