Skip to content

Commit

Permalink
feat: remove del cache by t
Browse files Browse the repository at this point in the history
  • Loading branch information
wendryosales committed Aug 23, 2023
1 parent 0d370a8 commit ecd9524
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/pessoa/pessoa.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ export class PessoaService {
async getPersons(t: string) {
const cached = await this.cacheManager.get(t);
if (cached) {
await this.cacheManager.del(t);
return JSON.parse(cached as string);
}
const persons = await this.pessoaModel
Expand Down

0 comments on commit ecd9524

Please sign in to comment.