Integra Products e adapters S3/SMTP; corrige desvios pós-merge dos agentes
- Wire ProductsModule em app.module.ts; troca o import "deep path" que o agente usou (packages/database/dist/...) pela exportação correta via barrel (@eden/database), já que packages/database/src/index.ts é meu para editar durante a integração. - S3/SMTP: troca leitura direta de process.env por loadEnv()/@eden/config (que não existia ainda quando o agente rodou no worktree dele). - Resolve conflito de pnpm-lock.yaml (regenerado via pnpm install). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,17 +1,5 @@
|
||||
import { Injectable, NotFoundException } from "@nestjs/common";
|
||||
import { auditRepo } from "@eden/database";
|
||||
// Deliberately deep-imported rather than added to the shared @eden/database
|
||||
// barrel (packages/database/src/index.ts) — that file is off limits for
|
||||
// this module per the integration boundary (avoids merge conflicts with
|
||||
// sibling agents editing the same barrel concurrently). Whoever wires
|
||||
// modules together should add
|
||||
// export * as productsRepo from "./repositories/products.js";
|
||||
// export type { Product } from "./repositories/products.js";
|
||||
// to the barrel for parity with how companiesRepo is consumed; until then
|
||||
// this deep path is functionally equivalent (requires @eden/database to be
|
||||
// built first, same as the barrel import would).
|
||||
import * as productsRepo from "@eden/database/dist/repositories/products.js";
|
||||
import type { Product } from "@eden/database/dist/repositories/products.js";
|
||||
import { auditRepo, productsRepo, type Product } from "@eden/database";
|
||||
import type { CreateProductDto } from "./dto/create-product.dto.js";
|
||||
import type { UpdateProductDto } from "./dto/update-product.dto.js";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user