Commit Graph

3 Commits

Author SHA1 Message Date
a64caa4081 Add keywords to transactions table
Keywords are now saved to the merchandise_list form_list when selling to the
shop.
2021-02-09 23:46:42 -05:00
08c8dcb07b Working create_transaction endpoint
Creates the transaction record and updates the merchandise quantity in one db transaction.

Managed to do the merchandise update in one UPDATE query, but the error that's thrown when an item to buy is not found is pretty confusing, so I convert it to a 404.

I also added some DB indexes.
2020-10-31 20:34:20 -04:00
c87c35021e New transactions endpoint, split up handlers file 2020-10-30 00:22:26 -04:00