Skip to content

Commit

Permalink
fix(sql): fix tagging of datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelgerber committed Apr 26, 2024
1 parent d65c4ca commit 56d5b05
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions adminSiteServer/apiRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1622,11 +1622,13 @@ putRouteWithRWTransaction(
datasetId,
])
if (tagRows.length)
await db.knexRaw(
trx,
`INSERT INTO dataset_tags (tagId, datasetId) VALUES (?, ?)`,
tagRows
)
for (const tagRow of tagRows) {
await db.knexRaw(
trx,
`INSERT INTO dataset_tags (tagId, datasetId) VALUES (?, ?)`,
tagRow
)
}

try {
await syncDatasetToGitRepo(trx, datasetId, {
Expand Down

0 comments on commit 56d5b05

Please sign in to comment.