add await
This commit is contained in:
parent
9161c6d7db
commit
fb4474b44e
@ -50,7 +50,7 @@ const saveToLog = async (source, text = '') => {
|
|||||||
let user = await db.query({text, values})
|
let user = await db.query({text, values})
|
||||||
let data = null
|
let data = null
|
||||||
if (user.rowCount === 0) {
|
if (user.rowCount === 0) {
|
||||||
data = api.line.getUserInfo(groupId, userId)
|
data = await api.line.getUserInfo(groupId, userId)
|
||||||
console.log('user data ::::: ', data)
|
console.log('user data ::::: ', data)
|
||||||
if (data === null) {
|
if (data === null) {
|
||||||
db.release()
|
db.release()
|
||||||
|
Loading…
Reference in New Issue
Block a user