|
@@ -311,6 +311,10 @@ func (s *JlService) ProjectExist(projectId int, accountId int) (map[string]inter
|
|
"exp": expirationTime.Unix(),
|
|
"exp": expirationTime.Unix(),
|
|
"iat": time.Now().Unix(),
|
|
"iat": time.Now().Unix(),
|
|
})
|
|
})
|
|
|
|
+ if debug == "" {
|
|
|
|
+ debug = "prod"
|
|
|
|
+ }
|
|
|
|
+
|
|
return map[string]interface{}{"env": debug, "token": tokenString}, nil
|
|
return map[string]interface{}{"env": debug, "token": tokenString}, nil
|
|
}
|
|
}
|
|
|
|
|