Skip to content

Commit

Permalink
fix: remove eslint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmanuelDemey committed Nov 28, 2024
1 parent 18f69e4 commit a061dac
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions functions/src/generator/lib/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function getSponsoringFees(sponsoringConfiguration: SponsorshipConfiguration): [
return [sponsoringConfiguration.priceString, sponsoringConfiguration.price, sponsoringConfiguration.freeTickets];
}

function generateFile(config: any, fileName: string, fileModule: any, configuration: Configuration, invoiceType: any) {
function generateFile(config: any, fileName: string, fileModule: any, configuration: Configuration, invoiceType: any): Promise<string> {
const file = fileModule.default;
const getOfficialName = () => {
if (config.officialName) {
Expand All @@ -28,7 +28,7 @@ function generateFile(config: any, fileName: string, fileModule: any, configurat
const sponsoringConfiguration: SponsorshipConfiguration | undefined = configuration.sponsorships.find((s) => s.name.toLowerCase() === config.sponsoring.toLowerCase());

if (!sponsoringConfiguration) {
return;
return Promise.reject();
}

const [SPONSORING_TEXT, SPONSORING_NUMBER, NUMBER_PLACE] = getSponsoringFees(sponsoringConfiguration);
Expand Down
7 changes: 1 addition & 6 deletions functions/src/utils/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,7 @@ export async function generateAndStoreProformaInvoiceAndConvention(company: Comp
generateDevis({ ...company, id }, configuration)
]);

await Promise.all([
storeFile('convention/', convention as any),
storeFile('devis/', proformaInvoice as any),
storeFile('devis/', depositInvoice as any),
storeFile('devis/', devis as any)
]);
await Promise.all([storeFile('convention/', convention), storeFile('devis/', proformaInvoice), storeFile('devis/', depositInvoice), storeFile('devis/', devis)]);
}
export async function generateAndStoreInvoice(firestore: FirebaseFirestore.Firestore, company: Company, id: string, configuration: Configuration) {
let invoiceNumber = company.invoiceNumber;
Expand Down
2 changes: 1 addition & 1 deletion public/src/app/v3/closed-form-warning-message.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Timestamp } from '@angular/fire/firestore';
template: `
<p>
Le formulaire n'est pas encore ouvert. Nous vous donnons rendez-vous le
{{ date() | date: 'full' }}.
{{ date() | date: 'short' }}.
</p>
`
})
Expand Down
1 change: 1 addition & 0 deletions public/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
<script src="https://cdn.metricalp.com/event/metricalp.js" data-allow-localhost="true" data-tid="mam245" defer></script>
</head>
<body class="mat-typography">
<cms-root></cms-root>
Expand Down

0 comments on commit a061dac

Please sign in to comment.