Dev database

This commit is contained in:
Ben Grant 2021-04-12 13:06:10 +10:00
parent 01a9b55b6a
commit ad9863f2de
10 changed files with 17 additions and 13 deletions

View file

@ -2,7 +2,7 @@ module.exports = async (req, res) => {
const { eventId } = req.params;
try {
const query = req.datastore.createQuery('Person').filter('eventId', eventId);
const query = req.datastore.createQuery(req.types.person).filter('eventId', eventId);
let people = (await req.datastore.runQuery(query))[0];
people = people.map(person => ({
name: person.name,