mirror of
https://github.com/tiennm99/is-a-good-dev.git
synced 2026-10-13 12:14:52 +00:00
Fix error.
This commit is contained in:
1 parent
44e0ab631f
commit
e876ce12b8
1 file changed
+1
-1
@@ -1,7 +1,7 @@
|
||||
const fetch = require('node-fetch');
|
||||
const getJSON = require('../utils/getJSON.js');
|
||||
const data = getJSON(process.env.FILES);
|
||||
const arrayRecordTypes["a", "aaaa"];
|
||||
const arrayRecordTypes = ["a", "aaaa"];
|
||||
async function addRecord(type, name, value) {
|
||||
const response = await fetch(`https://api.is-a-good.dev/api/is-a-good-dev/zones/add?apiKey=${process.env.API_KEY}&type=${type}&name=${name}&content=${value}`);
|
||||
const data = await response.json();
|
||||
|
||||
Reference in new issue
Block a user