diff --git a/src/infra/repositories/company.js b/src/infra/repositories/company/index.js similarity index 90% rename from src/infra/repositories/company.js rename to src/infra/repositories/company/index.js index 9446ef8..8349525 100644 --- a/src/infra/repositories/company.js +++ b/src/infra/repositories/company/index.js @@ -1,4 +1,4 @@ -const { toEntity } = require('./transforms/company') +const { toEntity } = require('./transform') module.exports = (model) => { const getAll = (...args) => diff --git a/src/infra/repositories/transforms/company.js b/src/infra/repositories/company/transform.js similarity index 100% rename from src/infra/repositories/transforms/company.js rename to src/infra/repositories/company/transform.js diff --git a/src/infra/repositories/user.js b/src/infra/repositories/user/index.js similarity index 91% rename from src/infra/repositories/user.js rename to src/infra/repositories/user/index.js index 8f3338a..d216d68 100644 --- a/src/infra/repositories/user.js +++ b/src/infra/repositories/user/index.js @@ -1,5 +1,5 @@ -const { toEntity } = require('./transforms/user') -const { comparePassword } = require('../encryption') +const { toEntity } = require('./transform') +const { comparePassword } = require('../../encryption') module.exports = (model) => { const getAll = (...args) => diff --git a/src/infra/repositories/transforms/user.js b/src/infra/repositories/user/transform.js similarity index 100% rename from src/infra/repositories/transforms/user.js rename to src/infra/repositories/user/transform.js