update tributes
This commit is contained in:
parent
08e079da60
commit
47229f8849
2
sql.go
2
sql.go
@ -658,7 +658,7 @@ func insertMsgTributesStats(m *ChatWarsMessageTributesStatsAck) error {
|
||||
defer stmt.Close()
|
||||
|
||||
for _, t := range m.Tributes {
|
||||
_, err := stmt.Exec(m.Msg.TGUserID64, t.ItemID64, t.Quantity, t.Exp, t.Date)
|
||||
_, err = stmt.Exec(m.Msg.TGUserID64, t.ItemID64, t.Quantity, t.Exp, t.Date)
|
||||
logOnError(err, "insertMsgTributesStats Exec")
|
||||
}
|
||||
|
||||
|
@ -516,7 +516,7 @@ func SQLIdentifyMsgWorker(id int, objIds <-chan int64) {
|
||||
botCraftAll(m, rule.re)
|
||||
case cacheObjSubType[`msg_tributes_stats_req`]:
|
||||
case cacheObjSubType[`msg_tributes_stats_ack`]:
|
||||
_, err := parseSubTypeMessageTributesStatsAck(m, rule.re)
|
||||
cwm, err := parseSubTypeMessageTributesStatsAck(m, rule.re)
|
||||
logOnError(err, "SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : Parsing cacheObjSubType[`msg_tributes_stats_ack`]")
|
||||
err = insertMsgTributesStats(cwm)
|
||||
logOnError(err, "SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : insertMsgTributesStats")
|
||||
|
Loading…
Reference in New Issue
Block a user