Skip to content

Commit

Permalink
feat: optionally commit specific list of staging ids
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Jun 29, 2022
1 parent 6197f5d commit 8fd73c4
Show file tree
Hide file tree
Showing 3 changed files with 301 additions and 271 deletions.
2 changes: 2 additions & 0 deletions src/controllers/staging.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ export const commit = async (req, res) => {
await Staging.pushToDataLayer(
_.get(req, 'query.table', null),
_.get(req, 'body.comment', ''),
_.get(req, 'body.ids', []),
);

res.json({ message: 'Staging Table committed to full node' });
} catch (error) {
console.trace(error);
Expand Down
Loading

0 comments on commit 8fd73c4

Please sign in to comment.