Support both internal and external rttys

This commit is contained in:
stephb9959
2021-11-27 16:40:31 -08:00
parent 5784a6297b
commit 7d68dd40c3
3 changed files with 8 additions and 8 deletions

View File

@@ -731,7 +731,7 @@ void RESTAPI_device_commandHandler::MakeRequest() {
if(RTTYS_server()->UseInternal()) {
Rtty.Token = MicroService::instance().CreateHash(UserInfo_.webtoken.refresh_token_ + std::to_string(std::time(nullptr))).substr(0,32);
RTTYS_server()->CreateEndPoint(Rtty.ConnectionId,Rtty.Token);
RTTYS_server()->CreateEndPoint(Rtty.ConnectionId,Rtty.Token, UserInfo_.userinfo.email, SerialNumber_);
}
Poco::JSON::Object ReturnedObject;