fix: Property 'rows' does not exist on type 'unknown'.

This commit is contained in:
chenos 2021-03-16 14:43:55 +08:00
parent bfdb45a1ef
commit fdc1ab03e7

View File

@ -10,7 +10,7 @@ export async function list(ctx: actions.Context, next: actions.Next) {
});
await actions.common.list(ctx, async () => {
const permissions = await associated.getPermissions();
ctx.body.rows.forEach(item => {
(ctx.body.rows as any).forEach(item => {
const permission = permissions.find(p => p.collection_name === item.get('name'));
if (permission) {
// item.permissions = [permission]; // 不输出