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