This commit is contained in:
shoopea 2019-05-19 11:22:30 +08:00
parent 8c15fa27f6
commit bf3c440f13

2
bot.go
View File

@ -144,7 +144,7 @@ func botMsgRescanAll(m *tb.Message) {
return
}
p := JobPayloadRescanMsg{
Query: fmt.Sprintf("SELECT o.id FROM obj o WHERE o.obj_type_id = %d AND o.obj_sub_type_id = %d;", objTypeMessage, objSubTypeMessageUnknown),
Query: fmt.Sprintf("SELECT o.id FROM obj o WHERE o.obj_type_id = %d AND o.obj_sub_type_id = %d ORDER BY id ASC;", objTypeMessage, objSubTypeMessageUnknown),
MsgID64: int64(m.ID),
ChatID64: m.Chat.ID,
}