Skip to content

Commit

Permalink
There may be an issue with the store field in the poi table.
Browse files Browse the repository at this point in the history
  • Loading branch information
yoozo committed Nov 14, 2024
1 parent 71affcb commit f7023ea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/node-core/src/indexer/store/entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ export class EntityClass implements Entity {
id: string;
// Name needs to be private so that it can be converted to a generated entity
#name: string;
#store: Store;

constructor(name: string, properties: {id: string} & any, private store: Store) {
constructor(name: string, properties: {id: string} & any, store: Store) {
this.#name = name;
this.#store = store;
this.id = properties.id;
Object.assign(this, properties);
}
Expand All @@ -21,6 +23,6 @@ export class EntityClass implements Entity {
}

async save(): Promise<void> {
return this.store.set(this.#name, this.id, this);
return this.#store.set(this.#name, this.id, this);
}
}

0 comments on commit f7023ea

Please sign in to comment.