Send google play public key during /purchase/can-do-purchase

This commit is contained in:
Jonas Lochmann
2020-06-08 02:00:00 +02:00
parent 12dc22f8a2
commit 27c3b494da
4 changed files with 11 additions and 5 deletions
+3 -1
View File
@@ -23,6 +23,7 @@ import {
addPurchase,
areGooglePlayPaymentsPossible,
canDoNextPurchase,
googlePlayPublicKey,
isGooglePlayPurchaseSignatureValid,
requireFamilyEntry
} from '../function/purchase'
@@ -54,7 +55,8 @@ export const createPurchaseRouter = ({ database, websocket }: {
const result = canDoNextPurchase({ fullVersionUntil: parseInt(familyEntry.fullVersionUntil, 10) })
res.json({
canDoPurchase: result ? 'yes' : 'no due to old purchase'
canDoPurchase: result ? 'yes' : 'no due to old purchase',
googlePlayPublicKey
})
} catch (ex) {
next(ex)