Anwesenheit bugfix
This commit is contained in:
parent
8530cbf21b
commit
9a75483fa7
2
app.js
2
app.js
|
@ -829,7 +829,7 @@ app.post('/anwesend', requireAuth, async (req, res) => {
|
|||
req.session.activeTab = 'anwesend';
|
||||
|
||||
try {
|
||||
await pool.query('Delete FROM anwesend WHERE fid_training = $1', [trainingId]);
|
||||
// await pool.query('Delete FROM anwesend WHERE fid_training = $1', [trainingId]);
|
||||
for (const teilnehmer of anw) {
|
||||
await pool.query('INSERT INTO anwesend (fid_teilnehmer, fid_training) VALUES ($1, $2)', [teilnehmer, trainingId]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue