皮肤:修改皮肤推送逻辑
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@ export default class Skin extends BaseModel {
|
||||
hid: number;
|
||||
|
||||
public static async findbyRole(roleId: string) {
|
||||
const rec: SkinType[] = await SkinModel.find({ roleId }).select('id').lean();
|
||||
const rec: SkinType[] = await SkinModel.find({ roleId }, {_id: 0}).select('id skinName hid').lean();
|
||||
return rec;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user