Skip to content

Commit

Permalink
delete cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ledyba committed May 15, 2022
1 parent fbaba4f commit 15b35ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/src/repo/Repo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ insert into entities (
this.cache.entity.set(entity.id, entity);
}
async deleteEntity(entity: Entity) {
this.cache.entity.del(entity.id);
// language=PostgreSQL
const q = `
delete from entities where "id" = $1;
Expand All @@ -159,6 +160,7 @@ delete from entities where "id" = $1;
this.cache.entity.del(entity.id);
}
async updateEntity(entity: Entity) {
this.cache.entity.del(entity.id);
// language=PostgreSQL
const q = `
update entities set
Expand Down

0 comments on commit 15b35ee

Please sign in to comment.