This commit is contained in:
lingdocs 2021-09-16 14:08:23 -04:00
parent 361dfe6ae8
commit 75aac412ec
1 changed files with 4 additions and 2 deletions

View File

@ -16,7 +16,8 @@ export const publishDictionary = functions.runWith({
try {
const response = await publish();
res.send(response);
} catch (e: any) {
} catch (e) {
// @ts-ignore
res.status(500).send({ ok: false, error: e.message });
}
}
@ -39,7 +40,8 @@ export const submissions = functions.runWith({
const response = await receiveSubmissions(suggestions, req.user.level === "editor");
// TODO: WARN IF ANY OF THE EDITS DIDN'T HAPPEN
res.send(response);
} catch (e: any) {
} catch (e) {
// @ts-ignore
res.status(500).send({ ok: false, error: e.message });
};
}