Finalise release details

This commit is contained in:
Fred Boniface
2025-06-26 21:14:27 +01:00
parent 6733bd1669
commit e5a06db550
8 changed files with 64 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
import nodemailer from 'nodemailer';
import type { Transporter, SendMailOptions } from 'nodemailer';
import { Report, Report as ReportSchema } from './models/report';
import { Report, Report as ReportSchema } from './models/report.js';
export interface Fault {
coach: string;
@@ -15,7 +15,7 @@ export interface Report {
faults: Fault[];
}
export async function handleFormData(data) {
export async function handleFormData(data: any) {
// Uploads form data to database and emails
// to defined subscribers.

View File

@@ -1,6 +1,6 @@
import express, { Request, Response } from "express";
import { handleFormData } from "./formHandler";
import { initDb } from "./database";
import { handleFormData } from "./formHandler.js";
import { initDb } from "./database.js";
const app = express();
const port = process.env.port || 3000;