v0.0.618 remove deprecated param 'user_id' from scn.send()
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Failing after 1m46s
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Failing after 1m46s
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
package goext
|
package goext
|
||||||
|
|
||||||
const GoextVersion = "0.0.617"
|
const GoextVersion = "0.0.618"
|
||||||
|
|
||||||
const GoextVersionTimestamp = "2025-12-06T11:54:36+0100"
|
const GoextVersionTimestamp = "2025-12-06T22:20:02+0100"
|
||||||
|
|||||||
@@ -1,13 +1,11 @@
|
|||||||
package scn
|
package scn
|
||||||
|
|
||||||
type Connection struct {
|
type Connection struct {
|
||||||
uid string
|
|
||||||
token string
|
token string
|
||||||
}
|
}
|
||||||
|
|
||||||
func New(userid string, token string) *Connection {
|
func New(token string) *Connection {
|
||||||
return &Connection{
|
return &Connection{
|
||||||
uid: userid,
|
|
||||||
token: token,
|
token: token,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,7 +88,6 @@ func (c *MessageBuilder) Send(ctx context.Context) (MessageResponse, error) {
|
|||||||
|
|
||||||
body := langext.H{}
|
body := langext.H{}
|
||||||
|
|
||||||
body["user_id"] = c.conn.uid
|
|
||||||
body["key"] = c.conn.token
|
body["key"] = c.conn.token
|
||||||
|
|
||||||
if c.channel != nil {
|
if c.channel != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user