1
0
Fork 0
polaris-task-force/src/app/api
Z8MB1E 73cae3defd feat(arma): sync in-game shop money events to bank accounts
Route the game's `money.delta` events into the web banking system so a
player's personal bank account tracks their in-game wallet.

- New `processMoneyEvent` (src/lib/arma-bridge/money.ts) applies a parsed
  money delta to the player's personal account: debits go to the unit
  treasury (or leave if no treasury), refunds hit the treasury first and
  fall back to a plain deposit, and rewards/grants deposit directly.
- Wire the handler into ArmaSyncEvents and add a `POST /api/arma/v1/balances`
  route (get_balances) that returns personal balances for Steam IDs, omitting
  unlinked IDs so the game keeps its own stored value.
- Events dedupe by serverId+eventId so a retried delivery never
  double-charges, and the whole path never throws.
2026-10-01 10:04:32 -04:00
..
arma/v1 feat(arma): sync in-game shop money events to bank accounts 2026-10-01 10:04:32 -04:00
game-tick/notify feat(realtime): add game-tick SSE notification pipeline 2026-08-02 02:03:56 -04:00
health feat(version): expose build metadata 2026-08-27 18:36:11 -04:00
impersonation feat(impersonation): implement user impersonation functionality and UI 2026-08-21 01:41:14 -04:00
map-features feat(map): world map picker entry, intel fields, node icons, generic markers 2026-09-21 20:47:46 -04:00
map-import feat(map): gate feature authoring and structure placement behind dedicated permissions 2026-09-30 14:50:14 -04:00
mission-reminder feat(intelligence): add mission feedback reminders 2026-08-28 00:20:41 -04:00
realtime feat(presence): add presence channel handling in real-time updates 2026-08-28 22:08:37 -04:00
surveys/pending feat(surveys): periodic reminder toasts for pending surveys 2026-09-23 21:07:13 -04:00
version feat(version): expose build metadata 2026-08-27 18:36:11 -04:00