fix: #11595, use default value

isekai-main
Barış Soner Uşaklı 2 years ago
parent ccd6f48c02
commit 28740de766

@ -111,7 +111,7 @@ settingsController.social = async function (req, res) {
};
settingsController.api = async (req, res) => {
const { tokens } = await meta.settings.get('core.api');
const { tokens = [] } = await meta.settings.get('core.api');
const scores = await api.utils.getLastSeen(tokens.map(t => t.token));
const [lastSeen, lastSeenISO] = tokens.reduce((memo, cur, idx) => {

Loading…
Cancel
Save