created backend to create lottery entries manually
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user