created backend to create lottery entries manually

This commit is contained in:
2025-08-13 12:21:12 +02:00
parent 42f46db2c9
commit 42d68181f9
2 changed files with 32 additions and 2 deletions

View File

@@ -50,3 +50,19 @@ export async function getTableData() {
}
return { success: false };
}
export async function createEntryCSV(file) {
// Implement CSV creation logic here
}
export async function createEntry(data) {
const [result] = await pool.query("INSERT INTO lose (losnummer) VALUES (?)", [
data.losnummer,
]);
if (result.affectedRows > 0) {
return { success: true };
} else {
return { success: false };
}
}