Skip to content

Commit

Permalink
✔ Pakai DNS Yang Audah Ada ~
Browse files Browse the repository at this point in the history
  • Loading branch information
bifeldy committed Mar 17, 2024
1 parent 66a3e08 commit 48741bd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion dist/main-site/server/main.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -184,21 +184,8 @@ export class FansubDnsController {
{ slug: ILike(fansubSlug) }
]
});
let isFansubDnsChanged = false;
if (fansub.dns_id !== rec.id) {
fansub.dns_id = rec.id;
isFansubDnsChanged = true;
}
let isFansubUrlChanged = false;
const fansubUrls = JSON.parse(fansub.urls);
if (fansubUrls['web'] !== rec.name) {
fansubUrls['web'] = `https://${rec.name}`;
isFansubUrlChanged = true;
}
if (isFansubDnsChanged || isFansubUrlChanged) {
if (isFansubUrlChanged) {
fansub.urls = JSON.stringify(fansubUrls);
}
fansub = await this.fansubRepo.save(fansub);
}
delete fansub.urls;
Expand Down

0 comments on commit 48741bd

Please sign in to comment.