update jobs
This commit is contained in:
parent
fbc31dc7ef
commit
7358ca67e8
3
job.go
3
job.go
@ -3,6 +3,7 @@ package main
|
||||
import (
|
||||
"archive/zip"
|
||||
"bytes"
|
||||
"compress/zlib"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
@ -18,7 +19,7 @@ import (
|
||||
)
|
||||
|
||||
func createJob(jobTypeID64 int64, priority int32, userID64 int64, trigger int64, schedule time.Time, payload []byte) (int64, error) {
|
||||
zb := make(bytes.Buffer)
|
||||
zb := new(bytes.Buffer)
|
||||
zw := zlib.NewWriter(&zb)
|
||||
zw.Write(payload)
|
||||
zw.Close()
|
||||
|
Loading…
Reference in New Issue
Block a user