|
@@ -61,7 +61,7 @@ class LoginService extends CrudService {
|
|
|
} else if (type === '4') {
|
|
|
_userid = uid.toString();
|
|
|
const result = await this.stuModel.findById(_userid);
|
|
|
- res = { userid: _userid, schid: result.schoolid, schname: result.school_name, termid: result.termid, batchid: result.batchid, classid: result.classid, bedroomid: result.bedroomid, bedroom: result.bedroom, job: result.job, name, type, id: _id, status };
|
|
|
+ res = { userid: _userid, schid: result.schid, schname: result.school_name, termid: result.termid, batchid: result.batchid, classid: result.classid, bedroomid: result.bedroomid, bedroom: result.bedroom, job: result.job, name, type, id: _id, status };
|
|
|
}
|
|
|
const token = await jwt.sign(res, secret, { expiresIn, issuer, subject });
|
|
|
return token;
|