🔄 chore: Consolidate agent model imports across middleware and tests from rebase

- Updated imports for `createAgent` and `getAgent` to streamline access from a unified `~/models` path.
- Enhanced test files to reflect the new import structure, ensuring consistency and maintainability across the codebase.
- Improved clarity by removing redundant imports and aligning with the latest model updates.
This commit is contained in:
Danny Avila 2026-03-16 08:26:55 -04:00
parent a0fed6173c
commit dd72b7b17e
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956
5 changed files with 7 additions and 7 deletions

View file

@ -8,7 +8,7 @@ const {
const { MongoMemoryServer } = require('mongodb-memory-server');
const { canAccessAgentFromBody } = require('./canAccessAgentFromBody');
const { User, Role, AclEntry } = require('~/db/models');
const { createAgent } = require('~/models/Agent');
const { createAgent } = require('~/models');
describe('canAccessAgentFromBody middleware', () => {
let mongoServer;