refactor: more legacy code replaced more on the model and a bit on the admin side
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { db } from "@pkg/db";
|
||||
import type {
|
||||
CreateCustomerInfoPayload,
|
||||
UpdateCustomerInfoPayload,
|
||||
CreateCustomerInfoPayload,
|
||||
UpdateCustomerInfoPayload,
|
||||
} from "./data";
|
||||
import { CustomerInfoRepository } from "./repository";
|
||||
|
||||
@@ -20,10 +20,6 @@ export class CustomerInfoUseCases {
|
||||
return this.repo.getCustomerInfoById(id);
|
||||
}
|
||||
|
||||
async getCustomerInfoByOrderId(orderId: number) {
|
||||
return this.repo.getCustomerInfoByOrderId(orderId);
|
||||
}
|
||||
|
||||
async createCustomerInfo(payload: CreateCustomerInfoPayload) {
|
||||
return this.repo.createCustomerInfo(payload);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user