From 072a623ba156a5422c01180651fd74e28ddc4f0e Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Tue, 26 Nov 2024 16:41:32 +0100 Subject: [PATCH] fix: FullResource name --- records.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/records.go b/records.go index df5a8c6..ea31705 100644 --- a/records.go +++ b/records.go @@ -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 ) @@ -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 }