File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
packages/hypergraph/src/entity Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -40,9 +40,9 @@ export const create = <const S extends Schema.Schema.AnyNoContext>(handle: DocHa
40
40
for ( const prop of ast . propertySignatures ) {
41
41
const result = SchemaAST . getAnnotation < string > ( PropertyIdSymbol ) ( prop . type ) ;
42
42
if ( Option . isSome ( result ) && isRelation ( prop . type ) ) {
43
- const relationId = generateId ( ) ;
44
43
if ( encoded [ result . value ] ) {
45
44
for ( const toEntityId of encoded [ result . value ] as string [ ] ) {
45
+ const relationId = generateId ( ) ;
46
46
relations [ relationId ] = {
47
47
from : entityId ,
48
48
to : toEntityId as string ,
Original file line number Diff line number Diff line change @@ -73,10 +73,8 @@ const subscribeToDocumentChanges = (handle: DocHandle<DocumentContent>) => {
73
73
const entity = doc . entities ?. [ entityId ] ;
74
74
if ( ! hasValidTypesProperty ( entity ) ) continue ;
75
75
for ( const typeId of entity [ '@@types@@' ] ) {
76
- console . log ( 'typeId' , typeId ) ;
77
76
if ( typeof typeId !== 'string' ) continue ;
78
77
const cacheEntry = decodedEntitiesCache . get ( typeId ) ;
79
- console . log ( 'cacheEntry' , cacheEntry ) ;
80
78
if ( ! cacheEntry ) continue ;
81
79
82
80
let includeFromAllQueries = { } ;
You can’t perform that action at this time.
0 commit comments