Added find by id to node service

This commit is contained in:
Peter Grlica
2020-12-13 18:53:19 +01:00
parent 098e290b90
commit f7f69895a8
+4
View File
@@ -360,6 +360,10 @@ func (svc node) FindBySharedNodeID(ctx context.Context, sharedNodeID uint64) (*t
return svc.store.LookupFederationNodeBySharedNodeID(ctx, sharedNodeID)
}
func (svc node) FindByID(ctx context.Context, nodeID uint64) (*types.Node, error) {
return svc.store.LookupFederationNodeByID(ctx, nodeID)
}
// Looks for existing user or crates a new one
func (svc node) fetchFederatedUser(ctx context.Context, n *types.Node) (*sysTypes.User, error) {
// Generate handle for user that se this node