Skip to content

Commit 4947fce

Browse files
refactor: rename to 'supported_product_ids'
1 parent 141505c commit 4947fce

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

functions/index.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,15 @@ exports.sync_diagram = functions.https.onRequest(async (req, res) => {
5151
const supportedProductIds = (functions.config().paddle.product_ids || '')
5252
.split(',')
5353
.filter(Boolean);
54-
const checkSupportedProductIds = (productId) =>
55-
Boolean(productId && supportedProductIds.includes(productId));
54+
const checkSupportedProductIds = (productId) => {
55+
return productId && supportedProductIds.includes(productId);
56+
};
5657

57-
exports.supportedProductIds = functions.https.onRequest(async (req, res) => {
58-
res.status(200).send(JSON.stringify(supportedProductIds));
59-
});
58+
exports.supported_product_ids = functions.https.onRequest(
59+
async (req, res) => {
60+
res.status(200).send(JSON.stringify(supportedProductIds));
61+
},
62+
);
6063

6164
const replaceBaseUrlInShareLink = (responseData) => {
6265
const data = JSON.parse(responseData);

0 commit comments

Comments
 (0)