chore: update file location
continuous-integration/drone/tag Build is passing Details

pull/53/head devel_20.1.3
shancheas 2024-08-05 15:37:27 +07:00
parent c741a55577
commit 81a463e761
16 changed files with 8 additions and 5 deletions

View File

@ -12,5 +12,6 @@ COPY env/$env_target /app/.env
COPY --from=builder /app/env/$env_target .env
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/assets ./assets
COPY --from=builder /app/package.json ./package.json
CMD ["node", "--max-old-space-size=8192","--max-http-header-size", "512000", "-r", "dotenv/config", "dist/main"]

View File

Before

Width:  |  Height:  |  Size: 120 KiB

After

Width:  |  Height:  |  Size: 120 KiB

View File

@ -5,10 +5,10 @@ import { PassThrough } from 'stream';
export async function GeneratePdf(transaction, invoiceType, banks) {
const fonts = {
Roboto: {
normal: './fonts/Roboto-Regular.ttf',
bold: './fonts/Roboto-Medium.ttf',
italics: './fonts/Roboto-Italic.ttf',
bolditalics: './fonts/Roboto-MediumItalic.ttf',
normal: './assets/fonts/Roboto-Regular.ttf',
bold: './assets/fonts/Roboto-Medium.ttf',
italics: './assets/fonts/Roboto-Italic.ttf',
bolditalics: './assets/fonts/Roboto-MediumItalic.ttf',
},
};

File diff suppressed because one or more lines are too long