Skip to content

Commit

Permalink
fix Efí certificate path
Browse files Browse the repository at this point in the history
  • Loading branch information
allgood committed Oct 10, 2024
1 parent 307bd47 commit 9642603
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions backend/src/services/PaymentGatewayServices/EfiServices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,14 @@ import {

const webhookUrl = `${process.env.BACKEND_URL}/subscription/ticketz/webhook`;

const privateFolder = __dirname.endsWith("/dist")
? path.resolve(__dirname, "..", "private")
: path.resolve(__dirname, "..", "..", "..", "private");

async function getEfiOptions(): Promise<EfiCredentials> {
const cert = path.join(
__dirname,
`../../../private/${await GetSuperSettingService({ key: "_efiCertFile" })}`
);
const cert = `${privateFolder}/${await GetSuperSettingService({
key: "_efiCertFile"
})}`;

return {
sandbox: false,
Expand Down

0 comments on commit 9642603

Please sign in to comment.