parent
c755aa88fb
commit
a6c1b8505a
3
main.go
3
main.go
|
|
@ -328,7 +328,6 @@ type recordedJob struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func updateDeadJobs(jobs []broker.Job) error {
|
func updateDeadJobs(jobs []broker.Job) error {
|
||||||
return nil // todo fluffycat notifies on edit ew
|
|
||||||
db := config.Get().DB()
|
db := config.Get().DB()
|
||||||
list, err := db.List([]string{}, "sent_job_", "sent_job_}}")
|
list, err := db.List([]string{}, "sent_job_", "sent_job_}}")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
@ -351,9 +350,11 @@ func updateDeadJobs(jobs []broker.Job) error {
|
||||||
if err := json.Unmarshal(b, &recorded); err != nil {
|
if err := json.Unmarshal(b, &recorded); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
/* // TODO this beeps on fluffychat
|
||||||
if err := message.NewMatrix().Update(recorded.MatrixID, recorded.Job.FormatMultilineTextDead()); err != nil {
|
if err := message.NewMatrix().Update(recorded.MatrixID, recorded.Job.FormatMultilineTextDead()); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
if err := db.Set(listEntry, nil); err != nil {
|
if err := db.Set(listEntry, nil); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue