shipment methods

This commit is contained in:
2025-11-23 15:38:22 +03:30
parent d894bae756
commit ff97d509aa
12 changed files with 28 additions and 25 deletions
@@ -0,0 +1,21 @@
import { Injectable } from '@nestjs/common';
import { EntityManager } from '@mikro-orm/postgresql';
import { ShipmentMethodRepository } from '../repositories/shipment-method.repository';
@Injectable()
export class ShipmentMethodsService {
constructor(
private readonly em: EntityManager,
private readonly shipmentMethodRepository: ShipmentMethodRepository,
) {}
findAll() {
return this.shipmentMethodRepository.findAll();
}
findOne(id: string) {
return this.shipmentMethodRepository.findOne({ id });
}
}