Skip to content

Commit

Permalink
fixed wrong signature of BeforeSave
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Aug 26, 2023
1 parent 7fbedd2 commit 652357c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/model/roomfinder_buildings2gps.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package model

import (
"database/sql"
"gorm.io/gorm"
"time"

"github.com/guregu/null"
Expand Down Expand Up @@ -31,6 +32,6 @@ func (r *RoomfinderBuildings2gps) TableName() string {
}

// BeforeSave invoked before saving, return an error if field is not populated.
func (r *RoomfinderBuildings2gps) BeforeSave() error {
func (r *RoomfinderBuildings2gps) BeforeSave(*gorm.DB) error {
return nil
}

0 comments on commit 652357c

Please sign in to comment.