Name generation and gradient calculation
This commit is contained in:
parent
8e5954e0ca
commit
ba1697ffc7
12 changed files with 418 additions and 54 deletions
|
|
@ -7,9 +7,13 @@ module.exports = async (req, res) => {
|
|||
|
||||
try {
|
||||
const event = (await req.datastore.get(req.datastore.key(['Event', eventId])))[0];
|
||||
const query = req.datastore.createQuery('Person')
|
||||
.filter('eventId', eventId)
|
||||
.filter('name', person.name);
|
||||
let personResult = (await req.datastore.runQuery(query))[0][0];
|
||||
|
||||
if (event) {
|
||||
if (person) {
|
||||
if (person && personResult === undefined) {
|
||||
const currentTime = dayjs().unix();
|
||||
|
||||
// If password
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue