Konvertiere RequestActions zu IOTA
This commit is contained in:
parent
8603087ed5
commit
3495fb5f50
2 changed files with 9 additions and 5 deletions
|
@ -70,7 +70,7 @@ func (r *RequestRepo) FindByOfficeHour(officeHour models.OfficeHour) ([]models.R
|
|||
|
||||
// Add a request to the database if it doesnt already exist.
|
||||
// Send a mail with the secret to the confirmation address in any case.
|
||||
func (r *RequestRepo) Add(officeHour models.OfficeHour, action int) (int, error) {
|
||||
func (r *RequestRepo) Add(officeHour models.OfficeHour, action models.RequestAction) (int, error) {
|
||||
existents, err := r.FindByOfficeHour(officeHour)
|
||||
if err != nil && !errors.Is(err, sql.ErrNoRows) {
|
||||
return 0, err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue