Skip to content

Commit e4568b3

Browse files
authored
Merge pull request #27 from is-a-good-dev/Tweak4141-patch-1
Update register.js to reflect new path.
2 parents fe66d2e + 34b5660 commit e4568b3

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/functions/check.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = async function check() {
1313
const subdomain = response.subdomain.toLowerCase();
1414

1515
fetch(
16-
`https://api.github.com/repos/is-a-good-dev/register/contents/sub-logs/${subdomain}.json`,
16+
`https://api.github.com/repos/is-a-good-dev/register/contents/domains/${subdomain}.json`,
1717
{
1818
method: "GET",
1919
headers: {

src/functions/register.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ let fullContent = `{
6767
const contentEncoded = Base64.encode(fullContent);
6868

6969
fetch(
70-
`https://api.github.com/repos/is-a-good-dev/register/contents/sub-logs/${subdomain}.json`,
70+
`https://api.github.com/repos/is-a-good-dev/register/contents/domains/${subdomain}.json`,
7171
{
7272
method: "GET",
7373
headers: {
@@ -80,7 +80,7 @@ let fullContent = `{
8080
.request("PUT /repos/{owner}/{repo}/contents/{path}", {
8181
owner: username,
8282
repo: forkName,
83-
path: "sub-logs/" + subdomain + ".json",
83+
path: "domains/" + subdomain + ".json",
8484
message: `feat(domain): add \`${subdomain}.is-a-good.dev\``,
8585
content: contentEncoded
8686
})

0 commit comments

Comments
 (0)