1
0
forked from x/icebergs
This commit is contained in:
harveyshao 2022-11-19 23:13:39 +08:00
parent 15c6d3f064
commit 41021ff55b
2 changed files with 4 additions and 1 deletions

View File

@ -213,7 +213,9 @@ func (m *Message) Length() (max int) {
func (m *Message) Tables(cbs ...func(value Maps)) *Message {
return m.Table(func(index int, value Maps, head []string) {
for _, cb := range cbs {
cb(value)
if cb != nil {
cb(value)
}
}
})
}

View File

@ -56,6 +56,7 @@ func init() {
return
}
msg := m.Cmd("_sum", value[nfs.PATH], mdb.TOTAL, "10000")
// msg := m.Cmd("_sum", value[nfs.PATH], mdb.TOTAL, "2022-01-01")
defer lock.Lock()()
msg.Tables(func(value ice.Maps) {