🗑️ Remove firebase deps

This commit is contained in:
2024-06-02 20:15:04 +08:00
parent c7ba566c48
commit 61eff6ea49
10 changed files with 23 additions and 69 deletions

View File

@ -23,6 +23,7 @@ func getUserinfo(c *fiber.Ctx) error {
Where(&models.Account{BaseModel: models.BaseModel{ID: user.ID}}).
Preload("Profile").
Preload("Contacts").
Preload("Badges").
First(&data).Error; err != nil {
return fiber.NewError(fiber.StatusInternalServerError, err.Error())
}

View File

@ -14,6 +14,7 @@ func getOtherUserinfo(c *fiber.Ctx) error {
Where(&models.Account{Name: alias}).
Omit("tickets", "challenges", "factors", "events", "clients", "notifications", "notify_subscribers").
Preload("Profile").
Preload("Badges").
First(&account).Error; err != nil {
return fiber.NewError(fiber.StatusBadRequest, err.Error())
}