Skip to content

Commit

Permalink
refactor(cms): change order status to string format
Browse files Browse the repository at this point in the history
Current int format is not suitable for use as api
  • Loading branch information
mrzzy committed Jan 21, 2024
1 parent 2ed683f commit d3f8bd8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions apps/cms/src/collections/Orders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ const Orders: CollectionConfig = {
type: "select",
options: [
{
value: "1",
value: "pending",
label: "Pending Payment",
},
{
value: "2",
value: "paid",
label: "Payment Completed",
},
{
value: "3",
value: "delivered",
label: "Order Completed",
},
],
Expand Down
2 changes: 1 addition & 1 deletion packages/types/src/lib/cms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export interface User {
export interface Order {
id: string;
paymentGateway: string;
status: '1' | '2' | '3';
status: 'pending' | 'paid' | 'delivered';
customerEmail: string;
transactionID: string;
orderDateTime: string;
Expand Down

0 comments on commit d3f8bd8

Please sign in to comment.