MCPcopy Create free account
hub / github.com/SwishHQ/spread / SetupStatus

Method SetupStatus

src/controller/user_controller.go:73–83  ·  view source on GitHub ↗
(ctx *fiber.Ctx)

Source from the content-addressed store, hash-verified

71}
72
73func (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
85func (c *userController) InitUser(ctx *fiber.Ctx) error {
86 // Check if any users exist

Callers

nothing calls this directly

Calls 3

ErrorResponseFunction · 0.92
SuccessResponseFunction · 0.92
CountMethod · 0.65

Tested by

no test coverage detected