diff --git a/server/invitation.go b/server/invitation.go index 774e44d..9fc27e3 100644 --- a/server/invitation.go +++ b/server/invitation.go @@ -2,6 +2,7 @@ package server import ( "errors" + "fmt" "math/rand" "time" @@ -17,6 +18,11 @@ func (r *RedisRouter) CreateInvitation(invitation []byte, timeout int, password if len(password) > 0 { r.Client.Set("mwpw:"+id, password, 0) //, time.Duration(timeout*1000000)) } + mwiv, err := r.Client.Get("mwiv:" + id).Result() + if err != nil { + fmt.Println(err) + } + fmt.Println(len([]byte(mwiv)), len(invitation)) return id, time.Now().Add(time.Duration(timeout * 1000000)).UTC() }