(id int, delta int)
| 713 | } |
| 714 | |
| 715 | func DeltaUpdateUserQuota(id int, delta int) (err error) { |
| 716 | if delta == 0 { |
| 717 | return nil |
| 718 | } |
| 719 | if delta > 0 { |
| 720 | return IncreaseUserQuota(id, delta, false) |
| 721 | } else { |
| 722 | return DecreaseUserQuota(id, -delta) |
| 723 | } |
| 724 | } |
| 725 | |
| 726 | //func GetRootUserEmail() (email string) { |
| 727 | // DB.Model(&User{}).Where("role = ?", common.RoleRootUser).Select("email").Find(&email) |
nothing calls this directly
no test coverage detected