only if reports exist

This commit is contained in:
ThatOneCalculator 2022-09-15 15:03:00 -07:00
parent 824070e576
commit 4206f46cf4

View file

@ -65,7 +65,7 @@ os.api('admin/abuse-user-reports', {
state: 'unresolved', state: 'unresolved',
limit: 1, limit: 1,
}).then(reports => { }).then(reports => {
if (reports.length > 0) thereIsUnresolvedAbuseReport = true; if (reports?.length > 0) thereIsUnresolvedAbuseReport = true;
}); });
await fetch('https://codeberg.org/api/v1/repos/thatonecalculator/calckey/releases?draft=false&pre-release=false&page=1&limit=1') await fetch('https://codeberg.org/api/v1/repos/thatonecalculator/calckey/releases?draft=false&pre-release=false&page=1&limit=1')