Browse Source

fix: OldData - dataRead

pull/5444/head
Wing-Kam Wong 1 year ago committed by Pranav C
parent
commit
db20a6d9a4
  1. 9
      packages/nocodb-nest/src/modules/datas/old-datas/old-datas.controller.ts
  2. 2
      packages/nocodb-nest/src/modules/datas/old-datas/old-datas.service.ts

9
packages/nocodb-nest/src/modules/datas/old-datas/old-datas.controller.ts

@ -85,7 +85,14 @@ export class OldDatasController {
@Param('tableName') tableName: string,
@Param('rowId') rowId: string,
) {
res.json(await this.oldDatasService.dataRead(req));
res.json(
await this.oldDatasService.dataRead({
projectId: projectId,
tableName: tableName,
rowId: rowId,
query: req.query,
}),
);
}
@Patch('/nc/:projectId/api/v1/:tableName/:rowId')

2
packages/nocodb-nest/src/modules/datas/old-datas/old-datas.service.ts

@ -94,7 +94,7 @@ export class OldDatasService {
return await nocoExecute(
ast,
await baseModel.readByPk(param.params.rowId),
await baseModel.readByPk(param.rowId),
{},
{},
);

Loading…
Cancel
Save