feat: flag rescinding logic + api method

This commit is contained in:
Julian Lam
2023-10-11 12:06:33 -04:00
parent cc8fe4353d
commit e012edea3b
7 changed files with 62 additions and 1 deletions

View File

@@ -109,7 +109,7 @@ Flags.get = async function (flagId) {
Flags.getReports(flagId),
]);
if (!base) {
return;
throw new Error('[[error:no-flag]]');
}
const flagObj = {
state: 'open',