mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2026-08-31 19:03:45 +02:00
Send google play public key during /purchase/can-do-purchase
This commit is contained in:
+3
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user