a
This commit is contained in:
parent
c7938219f7
commit
a0b24cd956
@ -58,10 +58,10 @@ const extraMethods = {
|
||||
where: { id: eventId }
|
||||
})
|
||||
.then(function (result) {
|
||||
//const aaa = result[0];
|
||||
//console.log('aaaaaaaaaaaaaaaaaaaaaaaaaaa');
|
||||
//console.log(aaa);
|
||||
resolve((result[0] === 1));
|
||||
if (result)
|
||||
resolve((result[0] === 1))
|
||||
else
|
||||
resolve(false);
|
||||
})
|
||||
.catch(function (error) {
|
||||
reject(error)
|
||||
@ -79,10 +79,10 @@ const extraMethods = {
|
||||
where: { id: eventId }
|
||||
})
|
||||
.then(function (result) {
|
||||
//const aaa = result[0];
|
||||
//console.log('aaaaaaaaaaaaaaaaaaaaaaaaaaa');
|
||||
//console.log(aaa);
|
||||
resolve((result[0] === 1));
|
||||
if (result)
|
||||
resolve((result[0] === 1))
|
||||
else
|
||||
resolve(false);
|
||||
})
|
||||
.catch(function (error) {
|
||||
reject(error)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user