Files
terminalShop-old/scripts/ops/list-paid.sh
marcusDenslow f6eed76456
Some checks failed
Deploy / deploy (push) Has been cancelled
feat(notify): post Slack message when an order is paid
2026-05-15 08:54:23 +02:00

7 lines
346 B
Bash
Executable File

#!/usr/bin/env bash
# List recent paid orders awaiting label purchase.
# Usage: scripts/ops/list-paid.sh
set -euo pipefail
ssh ubuntu-helsinki "sqlite3 -header -column /root/terminalShop/data/terminalshop.db \"SELECT id, status, total, shipping_name, shipping_city, shipping_country FROM orders WHERE status='paid' ORDER BY id DESC LIMIT 10;\""