aboutsummaryrefslogtreecommitdiff
path: root/build/cleaners/socialmedia.js
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2021-02-13 15:11:55 -0600
committermat <27899617+mat-1@users.noreply.github.com>2021-02-13 15:11:55 -0600
commit55bebce01352854368d5ccb57d0b51390d808f78 (patch)
tree28afc9185bd68b25cb87fddea4edff7d8f6e4fce /build/cleaners/socialmedia.js
parentd6d478d6165d7c17124dda64008b749cfb6b5c97 (diff)
downloadskyblock-api-55bebce01352854368d5ccb57d0b51390d808f78.tar.gz
skyblock-api-55bebce01352854368d5ccb57d0b51390d808f78.tar.bz2
skyblock-api-55bebce01352854368d5ccb57d0b51390d808f78.zip
change compile target to es2019
Diffstat (limited to 'build/cleaners/socialmedia.js')
-rw-r--r--build/cleaners/socialmedia.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/build/cleaners/socialmedia.js b/build/cleaners/socialmedia.js
index fb0bcfd..84ebfd5 100644
--- a/build/cleaners/socialmedia.js
+++ b/build/cleaners/socialmedia.js
@@ -2,9 +2,10 @@
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseSocialMedia = void 0;
function parseSocialMedia(socialMedia) {
+ var _a, _b;
return {
- discord: socialMedia?.links?.DISCORD || null,
- forums: socialMedia?.links?.HYPIXEL || null
+ discord: ((_a = socialMedia === null || socialMedia === void 0 ? void 0 : socialMedia.links) === null || _a === void 0 ? void 0 : _a.DISCORD) || null,
+ forums: ((_b = socialMedia === null || socialMedia === void 0 ? void 0 : socialMedia.links) === null || _b === void 0 ? void 0 : _b.HYPIXEL) || null
};
}
exports.parseSocialMedia = parseSocialMedia;