Update stats when creating events and people

This commit is contained in:
Ben Grant 2021-06-16 01:16:23 +10:00
parent 99989e66aa
commit ac96c9b441
3 changed files with 25 additions and 1 deletions

View file

@ -4,7 +4,7 @@ module.exports = async (req, res) => {
const { eventId } = req.params;
try {
const event = (await req.datastore.get(req.datastore.key([req.types.event, eventId])))[0];
let event = (await req.datastore.get(req.datastore.key([req.types.event, eventId])))[0];
if (event) {
res.send({