This commit is contained in:
shoopea 2019-05-25 15:29:24 +08:00
parent f865f5c151
commit 44b8d2d42d

4
obj.go
View File

@ -101,7 +101,7 @@ func addObjMsg(msgID64 int64, msgChatID64 int64, msgUserID64 int64, msgSenderUse
return objId, nil
}
func addObjCastle(logo string, name string) error {
func addObjCastle(logo string, name string) (int64, error) {
tx, err := db.Begin()
logOnError(err, "addObjCastle : start transaction")
if err != nil {
@ -185,7 +185,7 @@ func loadObjCastle() error {
return nil
}
func addObjGuild(tag string, name string) error {
func addObjGuild(tag string, name string) (int64, error) {
tx, err := db.Begin()
logOnError(err, "addObjGuild : start transaction")
if err != nil {