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