fix: Use module.exports instead of export default
This commit is contained in:
@@ -342,4 +342,4 @@ api.logout = {
|
||||
},
|
||||
};
|
||||
|
||||
export default api;
|
||||
module.exports = api;
|
||||
|
||||
@@ -565,4 +565,4 @@ api.selectChallengeWinner = {
|
||||
},
|
||||
};
|
||||
|
||||
export default api;
|
||||
module.exports = api;
|
||||
|
||||
@@ -392,4 +392,4 @@ api.deleteChat = {
|
||||
},
|
||||
};
|
||||
|
||||
export default api;
|
||||
module.exports = api;
|
||||
|
||||
@@ -226,4 +226,4 @@ api.exportUserAvatarPng = {
|
||||
},
|
||||
};
|
||||
|
||||
export default api;
|
||||
module.exports = api;
|
||||
|
||||
@@ -51,4 +51,4 @@ api.unsubscribe = {
|
||||
},
|
||||
};
|
||||
|
||||
export default api;
|
||||
module.exports = api;
|
||||
|
||||
@@ -497,12 +497,12 @@ async function _inviteByUUID (uuid, group, inviter, req, res) {
|
||||
if (group.type === 'guild') {
|
||||
emailVars.push(
|
||||
{name: 'GUILD_NAME', content: group.name},
|
||||
{name: 'GUILD_URL', content: '/#/options/groups/guilds/public'},
|
||||
{name: 'GUILD_URL', content: '/#/options/groups/guilds/public'}
|
||||
);
|
||||
} else {
|
||||
emailVars.push(
|
||||
{name: 'PARTY_NAME', content: group.name},
|
||||
{name: 'PARTY_URL', content: '/#/options/groups/party'},
|
||||
{name: 'PARTY_URL', content: '/#/options/groups/party'}
|
||||
);
|
||||
}
|
||||
|
||||
@@ -642,4 +642,4 @@ api.inviteToGroup = {
|
||||
},
|
||||
};
|
||||
|
||||
export default api;
|
||||
module.exports = api;
|
||||
|
||||
@@ -189,4 +189,4 @@ api.updateHero = {
|
||||
},
|
||||
};
|
||||
|
||||
export default api;
|
||||
module.exports = api;
|
||||
|
||||
@@ -231,4 +231,4 @@ api.getChallengeMemberProgress = {
|
||||
},
|
||||
};
|
||||
|
||||
export default api;
|
||||
module.exports = api;
|
||||
|
||||
@@ -36,4 +36,4 @@ api.getModelPaths = {
|
||||
},
|
||||
};
|
||||
|
||||
export default api;
|
||||
module.exports = api;
|
||||
|
||||
@@ -448,4 +448,4 @@ api.leaveQuest = {
|
||||
},
|
||||
};
|
||||
|
||||
export default api;
|
||||
module.exports = api;
|
||||
|
||||
@@ -144,4 +144,4 @@ api.deleteTag = {
|
||||
},
|
||||
};
|
||||
|
||||
export default api;
|
||||
module.exports = api;
|
||||
|
||||
@@ -923,4 +923,4 @@ api.deleteTask = {
|
||||
},
|
||||
};
|
||||
|
||||
export default api;
|
||||
module.exports = api;
|
||||
|
||||
@@ -156,4 +156,4 @@ api.castSpell = {
|
||||
},
|
||||
};
|
||||
|
||||
export default api;
|
||||
module.exports = api;
|
||||
|
||||
Reference in New Issue
Block a user