Skip to content

Commit 0fc35f7

Browse files
willswireclaude
andauthored
fix: add missing ttl to dns.records.update call (#213)
Fixes TypeScript error where the ttl property was required by the Cloudflare SDK RecordUpdateParams type but not being passed through. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1d942c8 commit 0fc35f7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ async function update(clientOptions: ClientOptions, newRecords: AddressableRecor
125125
zone_id: zone.id,
126126
name: newRecord.name as any,
127127
type: newRecord.type,
128+
ttl: newRecord.ttl,
128129
proxied, // Pass the existing "proxied" status
129130
comment, // Pass the existing "comment"
130131
});

0 commit comments

Comments
 (0)