🐛 Bug fixes on settings auth preferences

This commit is contained in:
2024-10-13 14:07:49 +08:00
parent 68b4390edf
commit 06bd632f37
3 changed files with 7 additions and 7 deletions

View File

@ -18,7 +18,7 @@ func getAuthPreference(c *fiber.Ctx) error {
return fiber.NewError(fiber.StatusNotFound, err.Error())
}
return c.JSON(cfg.Config)
return c.JSON(cfg.Config.Data())
}
func updateAuthPreference(c *fiber.Ctx) error {
@ -37,7 +37,7 @@ func updateAuthPreference(c *fiber.Ctx) error {
return fiber.NewError(fiber.StatusBadRequest, err.Error())
}
return c.JSON(cfg.Config)
return c.JSON(cfg.Config.Data())
}
func getNotificationPreference(c *fiber.Ctx) error {