Skip to content

Commit

Permalink
Update record.go
Browse files Browse the repository at this point in the history
  • Loading branch information
nomeguy authored May 24, 2024
1 parent e3bb544 commit 1166421
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions object/record.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
package object

import (
"fmt"
"github.com/xorm-io/core"
"strconv"

"github.com/xorm-io/core"
)

type Record struct {
Expand Down Expand Up @@ -72,8 +72,9 @@ func UpdateRecord(owner string, id string, record *Record) (bool, error) {
func GetRecord(owner string, id string) (*Record, error) {
idNum, err := strconv.Atoi(id)
if err != nil {
fmt.Println("Failed to transform id(string) to num: ", err)
return nil, err
}

record, err := getRecord(owner, int64(idNum))
if err != nil {
return nil, err
Expand Down

0 comments on commit 1166421

Please sign in to comment.