vendored and trimmed the s3blob driver and updated dependencies

This commit is contained in:
Gani Georgiev
2024-03-29 21:19:26 +02:00
parent 9eb3ff5833
commit 37dd9c8645
41 changed files with 1221 additions and 167 deletions

View File

@@ -59,7 +59,7 @@ func (dao *Dao) FindAdminByToken(token string, baseTokenKey string) (*models.Adm
// check required claims
id, _ := unverifiedClaims["id"].(string)
if id == "" {
return nil, errors.New("Missing or invalid token claims.")
return nil, errors.New("missing or invalid token claims")
}
admin, err := dao.FindAdminById(id)
@@ -116,7 +116,7 @@ func (dao *Dao) DeleteAdmin(admin *models.Admin) error {
}
if total == 1 {
return errors.New("You cannot delete the only existing admin.")
return errors.New("you cannot delete the only existing admin")
}
return dao.Delete(admin)