Skip to content

OUT-2108: Potential fix for products are occassionally not being created - #91

Merged
SandipBajracharya merged 5 commits into
previewfrom
OUT-2108
Aug 5, 2025
Merged

OUT-2108: Potential fix for products are occassionally not being created#91
SandipBajracharya merged 5 commits into
previewfrom
OUT-2108

Conversation

@SandipBajracharya

@SandipBajracharya SandipBajracharya commented Jul 31, 2025

Copy link
Copy Markdown
Collaborator

Changes

  • only listen to price.created webhook. Removed codes related product.created. Product info fetched from copilot by productId received from price payload.

… product

- [X] create product in QB when new price is added
- [X] update product name and description in QB for all the products with price
- [X] transaction locking mechanisms in postgres to prevent inserting duplicate records when two related webhooks run in parallel.
@linear

linear Bot commented Jul 31, 2025

Copy link
Copy Markdown

@vercel

vercel Bot commented Jul 31, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
quickbooks-sync ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 5, 2025 6:16am
quickbooks-sync (dev) ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 5, 2025 6:16am

@SandipBajracharya
SandipBajracharya changed the base branch from OUT-2101 to preview July 31, 2025 12:48
@SandipBajracharya
SandipBajracharya marked this pull request as draft August 4, 2025 07:43
…eate

- [X] only listen to price.created webhook. Removed codes related product.created. Product info fetched from copilot by productId received from price payload.
@SandipBajracharya
SandipBajracharya marked this pull request as ready for review August 4, 2025 08:01

@arpandhakal arpandhakal left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread src/app/api/quickbooks/product/product.service.ts Outdated
@SandipBajracharya
SandipBajracharya merged commit 997ad8d into preview Aug 5, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants