shipment methods
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user