|
|
@ -77,14 +77,13 @@ export async function tableList(req: Request, res: Response<TableListType>) { |
|
|
|
}) |
|
|
|
}) |
|
|
|
).filter((t) => tableViewMapping[t.id]); |
|
|
|
).filter((t) => tableViewMapping[t.id]); |
|
|
|
|
|
|
|
|
|
|
|
res // todo: pagination
|
|
|
|
res.json( |
|
|
|
.json( |
|
|
|
new PagedResponseImpl( |
|
|
|
new PagedResponseImpl( |
|
|
|
req.query?.includeM2M === 'true' |
|
|
|
req.query?.includeM2M |
|
|
|
? tableList |
|
|
|
? tableList |
|
|
|
: (tableList.filter((t) => !t.mm) as Model[]) |
|
|
|
: (tableList.filter((t) => !t.mm) as Model[]) |
|
|
|
) |
|
|
|
) |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export async function tableCreate(req: Request<any, any, TableReqType>, res) { |
|
|
|
export async function tableCreate(req: Request<any, any, TableReqType>, res) { |
|
|
|