test
This commit is contained in:
parent
f865f5c151
commit
44b8d2d42d
4
obj.go
4
obj.go
@ -101,7 +101,7 @@ func addObjMsg(msgID64 int64, msgChatID64 int64, msgUserID64 int64, msgSenderUse
|
|||||||
return objId, nil
|
return objId, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func addObjCastle(logo string, name string) error {
|
func addObjCastle(logo string, name string) (int64, error) {
|
||||||
tx, err := db.Begin()
|
tx, err := db.Begin()
|
||||||
logOnError(err, "addObjCastle : start transaction")
|
logOnError(err, "addObjCastle : start transaction")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -185,7 +185,7 @@ func loadObjCastle() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func addObjGuild(tag string, name string) error {
|
func addObjGuild(tag string, name string) (int64, error) {
|
||||||
tx, err := db.Begin()
|
tx, err := db.Begin()
|
||||||
logOnError(err, "addObjGuild : start transaction")
|
logOnError(err, "addObjGuild : start transaction")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user