Update stats when creating events and people
This commit is contained in:
parent
99989e66aa
commit
ac96c9b441
3 changed files with 25 additions and 1 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue