Skip to content
Snippets Groups Projects
Commit 9e235f77 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

send UID when adding a fact

parent e2273691
No related branches found
No related tags found
No related merge requests found
...@@ -40,9 +40,11 @@ func (m *Manager) addFact(inFact fact.Fact, aFC addFactComms) (*pb.FactRegisterR ...@@ -40,9 +40,11 @@ func (m *Manager) addFact(inFact fact.Fact, aFC addFactComms) (*pb.FactRegisterR
return &pb.FactRegisterResponse{}, err return &pb.FactRegisterResponse{}, err
} }
uid := m.storage.User().GetCryptographicIdentity().GetUserID()
// Create our Fact Removal Request message data // Create our Fact Removal Request message data
remFactMsg := pb.FactRegisterRequest{ remFactMsg := pb.FactRegisterRequest{
UID: m.host.GetId().Marshal(), UID: uid.Marshal(),
Fact: &pb.Fact{ Fact: &pb.Fact{
Fact: inFact.Fact, Fact: inFact.Fact,
FactType: uint32(inFact.T), FactType: uint32(inFact.T),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment