mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 20:25:26 +00:00
Added replace of .pass extension to prevent it twice
This commit is contained in:
@@ -67,6 +67,13 @@ export const pass = functions.https.onRequest(
|
||||
return;
|
||||
}
|
||||
|
||||
if (request.body.passModel.endsWith(".pass")) {
|
||||
request.body.passModel = request.body.passModel.replace(
|
||||
".pass",
|
||||
"",
|
||||
);
|
||||
}
|
||||
|
||||
const newPass = await PKPass.from(
|
||||
{
|
||||
// Get relevant pass model from model folder (see passkit-generator/examples/models/)
|
||||
|
||||
Reference in New Issue
Block a user