fixed #65, #67
Some checks failed
Tests / Run Go Tests (push) Failing after 1m31s

This commit is contained in:
2025-12-24 23:20:57 +01:00
parent 855cd6f34f
commit b7de3ade65
13 changed files with 777 additions and 2015 deletions

View File

@@ -294,3 +294,12 @@ func GetAbsenceTypeById(absenceTypeId int8) (AbsenceType, error) {
}
return absenceType, nil
}
func (a *Absence) Delete() error {
qStr, err := DB.Prepare("DELETE from abwesenheit WHERE counter_id = $1;")
if err != nil {
return err
}
_, err = qStr.Exec(a.CounterId)
return err
}