Skip to content

Commit

Permalink
upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielolivrp committed Apr 5, 2024
1 parent 7f65a9c commit 7b0d0c9
Show file tree
Hide file tree
Showing 5 changed files with 120 additions and 43 deletions.
6 changes: 3 additions & 3 deletions api/model/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import "gorm.io/gorm"
type Account struct {
gorm.Model
User string
Agent uint8
Device uint8
RawAgent uint8
Device uint16
Integrator uint16
Server string
AD bool
QrCode string
Status string
WasSynced bool
Expand Down
14 changes: 7 additions & 7 deletions api/service/whatsapp_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,11 @@ func (w *whatsAppService) gerOrCreateInstance(instanceID string) (*whatsapp.Inst
}

jid := types.JID{
User: account.User,
Agent: account.Agent,
Device: account.Device,
Server: account.Server,
AD: account.AD,
User: account.User,
RawAgent: account.RawAgent,
Device: account.Device,
Integrator: account.Integrator,
Server: account.Server,
}
instance := w.whatsApp.CreateInstanceFromDevice(
instanceID,
Expand Down Expand Up @@ -260,10 +260,10 @@ func (w *whatsAppService) handleConnected(instanceID string) {
var instance = w.app.LoadInstance(instanceID)
err := w.accountService.UpdateAccount(instanceID, map[string]interface{}{
"User": instance.Client.Store.ID.User,
"Agent": instance.Client.Store.ID.Agent,
"RawAgent": instance.Client.Store.ID.RawAgent,
"Device": instance.Client.Store.ID.Device,
"Server": instance.Client.Store.ID.Server,
"AD": instance.Client.Store.ID.AD,
"Integrator": instance.Client.Store.ID.Integrator,
"InstanceID": instance.ID,
"Status": "CONNECTED",
"QrCode": "",
Expand Down
58 changes: 31 additions & 27 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,59 +8,63 @@ require (
github.com/sirupsen/logrus v1.9.3
github.com/swaggo/files v1.0.1
github.com/swaggo/gin-swagger v1.6.0
github.com/swaggo/swag v1.16.2
github.com/swaggo/swag v1.16.3
github.com/vincent-petithory/dataurl v1.0.0
go.mau.fi/whatsmeow v0.0.0-20230628230045-73f143bc9874
google.golang.org/protobuf v1.31.0
gorm.io/driver/sqlite v1.5.3
gorm.io/gorm v1.25.3
go.mau.fi/whatsmeow v0.0.0-20240327124018-350073db195c
google.golang.org/protobuf v1.33.0
gorm.io/driver/sqlite v1.5.5
gorm.io/gorm v1.25.9
)

require (
github.com/KyleBanks/depth v1.2.1 // indirect
github.com/chenzhuoyu/iasm v0.9.0 // indirect
github.com/go-openapi/jsonpointer v0.20.0 // indirect
github.com/go-openapi/jsonreference v0.20.2 // indirect
github.com/go-openapi/spec v0.20.9 // indirect
github.com/go-openapi/swag v0.22.4 // indirect
github.com/chenzhuoyu/iasm v0.9.1 // indirect
github.com/go-openapi/jsonpointer v0.21.0 // indirect
github.com/go-openapi/jsonreference v0.21.0 // indirect
github.com/go-openapi/spec v0.21.0 // indirect
github.com/go-openapi/swag v0.23.0 // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-sqlite3 v1.14.17 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-sqlite3 v1.14.22 // indirect
github.com/onsi/ginkgo v1.16.5 // indirect
github.com/onsi/gomega v1.27.10 // indirect
github.com/rogpeppe/go-internal v1.11.0 // indirect
golang.org/x/tools v0.12.0 // indirect
github.com/rs/zerolog v1.32.0 // indirect
go.mau.fi/util v0.4.1 // indirect
golang.org/x/tools v0.20.0 // indirect
)

require (
filippo.io/edwards25519 v1.0.0 // indirect
github.com/bytedance/sonic v1.10.0 // indirect
filippo.io/edwards25519 v1.1.0 // indirect
github.com/bytedance/sonic v1.11.3 // indirect
github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect
github.com/gabriel-vasile/mimetype v1.4.2 // indirect
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-playground/validator/v10 v10.15.3 // indirect
github.com/go-playground/validator/v10 v10.19.0 // indirect
github.com/go-redis/redis v6.15.9+incompatible
github.com/goccy/go-json v0.10.2 // indirect
github.com/gorilla/websocket v1.5.0 // indirect
github.com/gorilla/websocket v1.5.1 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/cpuid/v2 v2.2.5 // indirect
github.com/leodido/go-urn v1.2.4 // indirect
github.com/mattn/go-isatty v0.0.19 // indirect
github.com/klauspost/cpuid/v2 v2.2.7 // indirect
github.com/leodido/go-urn v1.4.0 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/pelletier/go-toml/v2 v2.1.0 // indirect
github.com/pelletier/go-toml/v2 v2.2.0 // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
github.com/ugorji/go/codec v1.2.11 // indirect
github.com/ugorji/go/codec v1.2.12 // indirect
go.mau.fi/libsignal v0.1.0 // indirect
golang.org/x/arch v0.5.0 // indirect
golang.org/x/crypto v0.12.0 // indirect
golang.org/x/net v0.14.0 // indirect
golang.org/x/sys v0.15.0 // indirect
golang.org/x/text v0.13.0 // indirect
golang.org/x/arch v0.7.0 // indirect
golang.org/x/crypto v0.22.0 // indirect
golang.org/x/net v0.24.0 // indirect
golang.org/x/sys v0.19.0 // indirect
golang.org/x/text v0.14.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit 7b0d0c9

Please sign in to comment.