Skip to content

Commit

Permalink
Fixing eerr usage
Browse files Browse the repository at this point in the history
  • Loading branch information
schirrel authored Jul 17, 2024
1 parent 15495c4 commit d9ba88b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Repository/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class Repository {
let obj = model.createPersistObject();
let toPersist = QueryBuilder.insert(this.tableName, obj);
return await this.persist(toPersist);
} catch (eerr) {
} catch (err) {
Logger.error(err);
err.erro = "ERRO";
return err;
Expand All @@ -73,7 +73,7 @@ class Repository {
let obj = model.createUpdateObject();
let toPersist = QueryBuilder.update(this.tableName, obj);
return await this.persist(toPersist);
} catch (eerr) {
} catch (err) {
Logger.error(err);
err.erro = "ERRO";
return err;
Expand All @@ -84,7 +84,7 @@ class Repository {
try {
const res = await this.search({}, {});
return response;
} catch (eerr) {
} catch (err) {
Logger.error(err);
err.erro = "ERRO";
return err;
Expand Down

0 comments on commit d9ba88b

Please sign in to comment.