PocketBase 0.23 can't store an empty number (it reads back as 0), so a product saved with "Unlimited when empty" stock was sold out — on main too. trackStock says whether stock counts; existing products get it on, so nothing that sells today changes. The shop maps untracked stock to null (unlimited), as the UI always assumed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hy2vMnHJYP7QGsiH21zHxW |
||
|---|---|---|
| .. | ||
| src | ||
| bun.lock | ||
| package.json | ||