diff --git a/go.mod b/go.mod index f3cdf52..283530b 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module git.fossy.my.id/bagas/tunnel-please-controller go 1.25.5 require ( - git.fossy.my.id/bagas/tunnel-please-grpc v1.3.0 + git.fossy.my.id/bagas/tunnel-please-grpc v1.4.0 github.com/jackc/pgx/v5 v5.8.0 github.com/joho/godotenv v1.5.1 github.com/lestrrat-go/httprc/v3 v3.0.3 @@ -29,4 +29,4 @@ require ( golang.org/x/text v0.32.0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20251222181119-0a764e51fe1b // indirect google.golang.org/protobuf v1.36.11 // indirect -) +) \ No newline at end of file diff --git a/go.sum b/go.sum index f813ac8..85fa441 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,7 @@ git.fossy.my.id/bagas/tunnel-please-grpc v1.3.0 h1:RhcBKUG41/om4jgN+iF/vlY/RojTeX1QhBa4p4428ec= git.fossy.my.id/bagas/tunnel-please-grpc v1.3.0/go.mod h1:fG+VkArdkceGB0bNA7IFQus9GetLAwdF5Oi4jdMlXtY= +git.fossy.my.id/bagas/tunnel-please-grpc v1.4.0 h1:tpJSKjaSmV+vxxbVx6qnStjxFVXjj2M0rygWXxLb99o= +git.fossy.my.id/bagas/tunnel-please-grpc v1.4.0/go.mod h1:fG+VkArdkceGB0bNA7IFQus9GetLAwdF5Oi4jdMlXtY= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/server/server.go b/server/server.go index 7e2660c..f871c2c 100644 --- a/server/server.go +++ b/server/server.go @@ -389,8 +389,9 @@ func (s *Server) StartAPI(ctx context.Context, Addr string) error { Type: proto.EventType_SLUG_CHANGE, Payload: &proto.Events_SlugEvent{ SlugEvent: &proto.SlugChangeEvent{ - Old: slug.Old, - New: slug.New, + User: email, + Old: slug.Old, + New: slug.New, }, }, }