Dev database
This commit is contained in:
parent
01a9b55b6a
commit
ad9863f2de
10 changed files with 17 additions and 13 deletions
|
|
@ -5,7 +5,7 @@ module.exports = async (req, res) => {
|
|||
const { person } = req.body;
|
||||
|
||||
try {
|
||||
const query = req.datastore.createQuery('Person')
|
||||
const query = req.datastore.createQuery(req.types.person)
|
||||
.filter('eventId', eventId)
|
||||
.filter('name', personName);
|
||||
let personResult = (await req.datastore.runQuery(query))[0][0];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue