add console.log
This commit is contained in:
parent
ad45231d8d
commit
1b62131e6b
@ -113,6 +113,7 @@ const getUserInfo = async (group = '', id = '') => {
|
||||
let {displayName, userId} = result.data
|
||||
if (typeof displayName !== 'string' || displayName.length === 0) return null
|
||||
if (typeof userId !== 'string' || userId.length === 0) return null
|
||||
console.log('get user result ::::: ', result.data)
|
||||
return {
|
||||
displayName,
|
||||
userId
|
||||
|
@ -51,6 +51,7 @@ const saveToLog = async (source, text = '') => {
|
||||
let data = null
|
||||
if (user.rowCount === 0) {
|
||||
data = api.line.getUserInfo(groupId, userId)
|
||||
console.log('user data ::::: ', data)
|
||||
if (data === null) {
|
||||
db.release()
|
||||
return null
|
||||
|
Loading…
Reference in New Issue
Block a user