Skip to content

Commit 7ed9539

Browse files
committed
Update update_dns_record.ts
1 parent f2c9450 commit 7ed9539

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/api/update_dns_record.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ import { DnsRecord } from '../record/dns_record.ts';
44
import { ApiRequestOptions } from './api_request_options.ts';
55

66
export default function updateDnsRecord(
7+
recordId : string,
78
record : DnsRecord,
89
options : ApiRequestOptions
910
) : void {
1011
fetch(
11-
`${options.apiEndpoint}zones/${options.zoneId}/dns_records/${options.recordId}`,
12+
`${options.apiEndpoint}zones/${options.zoneId}/dns_records/${recordId}`,
1213
{
1314
method: 'PATCH',
1415
headers: {

0 commit comments

Comments
 (0)