Finalise release details
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user