Skip to content

Commit

Permalink
fix: FullResource name
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Nov 26, 2024
1 parent 4398e8d commit 072a623
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions records.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,8 @@ func (s *RecordsService) Delete(ctx context.Context, domainName, subName, record
type UpdateMode string

const (
// FullResourceUpdateMode the full resource must be specified.
FullResourceUpdateMode = http.MethodPut
// FullResource the full resource must be specified.
FullResource UpdateMode = http.MethodPut
// OnlyFields only fields you would like to modify need to be provided.
OnlyFields UpdateMode = http.MethodPatch
)
Expand Down Expand Up @@ -357,7 +357,7 @@ func (s *RecordsService) BulkDelete(ctx context.Context, domainName string, rrSe
deleteRRSets[i] = rrSet
}

_, err := s.BulkUpdate(ctx, FullResourceUpdateMode, domainName, deleteRRSets)
_, err := s.BulkUpdate(ctx, FullResource, domainName, deleteRRSets)
if err != nil {
return err
}
Expand Down

0 comments on commit 072a623

Please sign in to comment.