feat(core): Use filters for data table upsert (no-changelog) (#19292)

This commit is contained in:
Daria
2025-09-08 14:41:09 +03:00
committed by GitHub
parent 70254526bb
commit 9b06648edc
17 changed files with 218 additions and 609 deletions

View File

@@ -8,7 +8,7 @@ import {
MoveDataStoreColumnDto,
UpdateDataStoreDto,
UpdateDataTableRowDto,
UpsertDataStoreRowsDto,
UpsertDataStoreRowDto,
} from '@n8n/api-types';
import { AuthenticatedRequest } from '@n8n/db';
import {
@@ -274,14 +274,14 @@ export class DataStoreController {
@Post('/:dataStoreId/upsert')
@ProjectScope('dataStore:writeRow')
async upsertDataStoreRows(
async upsertDataStoreRow(
req: AuthenticatedRequest<{ projectId: string }>,
_res: Response,
@Param('dataStoreId') dataStoreId: string,
@Body dto: UpsertDataStoreRowsDto,
@Body dto: UpsertDataStoreRowDto,
) {
try {
return await this.dataStoreService.upsertRows(
return await this.dataStoreService.upsertRow(
dataStoreId,
req.params.projectId,
dto,