Revert "✨ feat(db): 修改role表数据库操作方式"
This reverts commit e39af3649288cc5802739cfe862c818fe56e194e.
This commit is contained in:
@@ -5,7 +5,7 @@ import { checkWjxSign, getRedisSubChannel } from 'app/pubUtils/sdkUtil';
|
||||
import { Service } from 'egg';
|
||||
import { RedisClient } from 'redis';
|
||||
import { REDIS_KEY } from '@consts';
|
||||
import Role from '@db/Role';
|
||||
import { RoleModel } from '@db/Role';
|
||||
|
||||
/**
|
||||
* Test Service
|
||||
@@ -24,7 +24,7 @@ export default class Sdk extends Service {
|
||||
let roleId = params[`q${curConfig.roleIndex}`];
|
||||
if(!roleId) return 0;
|
||||
|
||||
let role = await Role.findByRoleId(roleId);
|
||||
let role = await RoleModel.findByRoleId(roleId);
|
||||
if(!role) return 0;
|
||||
|
||||
let rec = await SurveyRecModel.findByRoleIdAndId(roleId, params.activity);
|
||||
|
||||
Reference in New Issue
Block a user