Browse Source

fix: invalid ltar list error

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5444/head
Pranav C 2 years ago
parent
commit
8e345adc02
  1. 4
      packages/nocodb-nest/src/modules/datas/data-alias-nested/data-alias-nested.service.ts

4
packages/nocodb-nest/src/modules/datas/data-alias-nested/data-alias-nested.service.ts

@ -1,4 +1,5 @@
import { Injectable } from '@nestjs/common';
import { UITypes } from 'nocodb-sdk';
import { NcError } from '../../../helpers/catchError';
import { PagedResponseImpl } from '../../../helpers/PagedResponse';
import { Base, Model } from '../../../models';
@ -196,6 +197,9 @@ export class DataAliasNestedService {
const column = await getColumnByIdOrName(param.columnName, model);
if (column.uidt !== UITypes.LinkToAnotherRecord)
NcError.badRequest('Column is not LTAR');
const data = await baseModel.hmList(
{
colId: column.id,

Loading…
Cancel
Save