API: Fix delete user failure due to quota not enabled (#59875)

pull/59890/head
Sofia Papagiannaki 3 years ago committed by GitHub
parent 3978502d83
commit 4259b6bf58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      pkg/services/quota/quotaimpl/quota.go

@ -33,7 +33,7 @@ func (s *serviceDisabled) CheckQuotaReached(ctx context.Context, targetSrv quota
}
func (s *serviceDisabled) DeleteQuotaForUser(ctx context.Context, userID int64) error {
return quota.ErrDisabled
return nil
}
func (s *serviceDisabled) RegisterQuotaReporter(e *quota.NewUsageReporter) error {

Loading…
Cancel
Save