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:
Philip Korsholm
2022-06-24 09:10:16 +02:00
committed by GitHub
parent 1585b7ae2b
commit fa7163941d
9 changed files with 294 additions and 267 deletions
+1 -1
View File
@@ -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" })