feat(medusa): Allow custom created_by on order edits (#3007)
This commit is contained in:
1 parent
d10ffa8118
commit
b80124d32d
14 files changed
+80
-71
No files matched your search
@@ -6,14 +6,14 @@ import {
|
||||
JoinColumn,
|
||||
ManyToOne,
|
||||
OneToMany,
|
||||
OneToOne,
|
||||
OneToOne
|
||||
} from "typeorm"
|
||||
|
||||
import OrderEditingFeatureFlag from "../loaders/feature-flags/order-editing"
|
||||
import { FeatureFlagEntity } from "../utils/feature-flag-decorators"
|
||||
import { resolveDbType } from "../utils/db-aware-column"
|
||||
import { BaseEntity } from "../interfaces"
|
||||
import OrderEditingFeatureFlag from "../loaders/feature-flags/order-editing"
|
||||
import { generateEntityId } from "../utils"
|
||||
import { resolveDbType } from "../utils/db-aware-column"
|
||||
import { FeatureFlagEntity } from "../utils/feature-flag-decorators"
|
||||
|
||||
import { LineItem, Order, OrderItemChange, PaymentCollection } from "."
|
||||
|
||||
@@ -44,7 +44,7 @@ export class OrderEdit extends BaseEntity {
|
||||
internal_note?: string
|
||||
|
||||
@Column()
|
||||
created_by: string // customer or user ID
|
||||
created_by: string // customer, user, third party, etc.
|
||||
|
||||
@Column({ nullable: true })
|
||||
requested_by?: string // customer or user ID
|
||||
|
||||
Reference in new issue
Block a user