(ctx *fiber.Ctx)
| 71 | } |
| 72 | |
| 73 | func (c *userController) SetupStatus(ctx *fiber.Ctx) error { |
| 74 | count, err := c.userService.Count(ctx.Context()) |
| 75 | if err != nil { |
| 76 | logger.L.Error("In SetupStatus: Error getting user count", zap.Error(err)) |
| 77 | return utils.ErrorResponse(ctx, err.Error()) |
| 78 | } |
| 79 | completed := count > 0 |
| 80 | return utils.SuccessResponse(ctx, fiber.Map{ |
| 81 | "completed": completed, |
| 82 | }) |
| 83 | } |
| 84 | |
| 85 | func (c *userController) InitUser(ctx *fiber.Ctx) error { |
| 86 | // Check if any users exist |
nothing calls this directly
no test coverage detected