testtest
This commit is contained in:
parent
364f541561
commit
194474df03
2
bot.go
2
bot.go
@ -1,9 +1,11 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
tb "gopkg.in/tucnak/telebot.v2"
|
tb "gopkg.in/tucnak/telebot.v2"
|
||||||
"regexp"
|
"regexp"
|
||||||
|
"strconv"
|
||||||
"time"
|
"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 {
|
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)
|
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")
|
logOnError(err, "createJob : insert obj")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user