update vault status

This commit is contained in:
shoopea 2019-10-11 16:19:13 +08:00
parent e66858b6fe
commit 4710564346

3
bot.go
View File

@ -721,7 +721,7 @@ func botVault(m *tb.Message, itemTypeList []int64) {
}
}
*/
if !m.Private() {
if !(m.Private() || m.Chat.ID == cfg.Bot.Mainchat) {
return
}
@ -736,7 +736,6 @@ func botVault(m *tb.Message, itemTypeList []int64) {
p.ItemTypeListID64 = append(p.ItemTypeListID64, itemTypeList...)
b, _ := json.Marshal(p)
log.Printf("botVault:\n%s\n", string(b))
t := time.Now().UTC()
_, err := createJob(objSubTypeJobVaultStatus, objJobPriority, int64(m.Sender.ID), 0, t, b)