feat(event): 10th Birthday Bash

with @CuriousMagpie and @phillipthelen
This commit is contained in:
SabreCat
2023-01-20 16:14:33 -06:00
parent a8cb303f46
commit e5bbde7e97
64 changed files with 2185 additions and 235 deletions

View File

@@ -75,12 +75,14 @@ api.checkout = {
middlewares: [authWithHeaders()],
async handler (req, res) {
const { user } = res.locals;
const { orderReferenceId, gift, gemsBlock } = req.body;
const {
orderReferenceId, gift, gemsBlock, sku,
} = req.body;
if (!orderReferenceId) throw new BadRequest('Missing req.body.orderReferenceId');
await amzLib.checkout({
gemsBlock, gift, user, orderReferenceId, headers: req.headers,
gemsBlock, gift, sku, user, orderReferenceId, headers: req.headers,
});
res.respond(200);