Commit 075f035b by zCaesar

edit role groupid

parent c9a62925
...@@ -13,7 +13,7 @@ function checkID(token, id, cb) { ...@@ -13,7 +13,7 @@ function checkID(token, id, cb) {
getRole(token, (role) => { getRole(token, (role) => {
// console.log(role) // console.log(role)
if (role.hasOwnProperty('groupId')) { if (role.hasOwnProperty('groupId')) {
cb(role.info.groupId) cb(role.groupId)
} }
else { else {
doDB(id, (groupId) => { doDB(id, (groupId) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment