Feat(medusa): convert customer service to typescript (#1653)
* centralize common knowledge and checks for list-customers in repository * convert customer service to typescript * fix typing error in update-address * add await * add atomic phases * update types for customerservice * update api and model types * pr feedback * remove Promise.resolve * typing of buildQuery * remove atomic phase from private method
This commit is contained in:
@@ -31,7 +31,7 @@ export class Customer extends SoftDeletableEntity {
|
||||
|
||||
@Index()
|
||||
@Column({ nullable: true })
|
||||
billing_address_id: string
|
||||
billing_address_id: string | null
|
||||
|
||||
@OneToOne(() => Address)
|
||||
@JoinColumn({ name: "billing_address_id" })
|
||||
|
||||
Reference in New Issue
Block a user