testtest
This commit is contained in:
parent
364f541561
commit
194474df03
2
bot.go
2
bot.go
@ -1,9 +1,11 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
tb "gopkg.in/tucnak/telebot.v2"
|
||||
"regexp"
|
||||
"strconv"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
2
sql.go
2
sql.go
@ -1326,7 +1326,7 @@ func insertMsgAuctionAnnounce(m *ChatWarsMessageAuctionAnnounce) error {
|
||||
|
||||
func createJob(job_type_id int32, priority int32, schedule time.Time, payload []byte) error {
|
||||
res, err := db.Exec(`INSERT INTO obj (obj_type_id, obj_sub_type_id)
|
||||
VALUES (` + strconv.Itoa(objTypeJob) + `,` + strconv.Itoa(job_type_id) + `);`)
|
||||
VALUES (` + strconv.Itoa(int(objTypeJob)) + `,` + strconv.Itoa(job_type_id) + `);`)
|
||||
logOnError(err, "createJob : insert obj")
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user