Skip to content

Commit 2108890

Browse files
authored
Merge pull request #310 from objectstack-ai/copilot/fix-ci-build-and-test
2 parents 1d4f33a + fc667d0 commit 2108890

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

examples/crm/objectstack.config.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,29 +56,29 @@ export default defineStack({
5656
name: "TechCorp Enterprise License",
5757
amount: 50000,
5858
stage: "Proposal",
59-
closeDate: new Date("2024-06-30"),
60-
accountId: "1", // This would ideally link to an account record
61-
contactIds: ["1", "2"], // Corrected IDs
59+
close_date: new Date("2024-06-30"),
60+
account_id: "1", // This would ideally link to an account record
61+
contact_ids: ["1", "2"], // Corrected IDs
6262
description: "Enterprise software license for 500 users. Includes premium support and training."
6363
},
6464
{
6565
_id: "102",
6666
name: "Software Inc Pilot",
6767
amount: 5000,
6868
stage: "Closed Won",
69-
closeDate: new Date("2024-01-15"),
70-
accountId: "2",
71-
contactIds: ["2"],
69+
close_date: new Date("2024-01-15"),
70+
account_id: "2",
71+
contact_ids: ["2"],
7272
description: "Pilot program for 50 users."
7373
},
7474
{
7575
_id: "103",
7676
name: "Good Grief Consultant",
7777
amount: 12000,
7878
stage: "Negotiation",
79-
closeDate: new Date("2024-05-20"),
80-
accountId: "3",
81-
contactIds: ["3"],
79+
close_date: new Date("2024-05-20"),
80+
account_id: "3",
81+
contact_ids: ["3"],
8282
description: "Consulting services for Q2 implementation."
8383
}
8484
]

examples/crm/src/objects/opportunity.object.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ export const OpportunityObject = ObjectSchema.create({
77
name: Field.text({ label: 'Opportunity Name', required: true }),
88
amount: Field.currency({ label: 'Amount' }),
99
stage: Field.select(["Prospecting", "Proposal", "Negotiation", "Closed Won", "Closed Lost"], { label: 'Stage' }),
10-
closeDate: Field.date({ label: 'Close Date' }),
11-
accountId: Field.lookup('account', { label: 'Account' }),
12-
contactIds: Field.lookup('contact', { label: 'Contacts', multiple: true }),
10+
close_date: Field.date({ label: 'Close Date' }),
11+
account_id: Field.lookup('account', { label: 'Account' }),
12+
contact_ids: Field.lookup('contact', { label: 'Contacts', multiple: true }),
1313
description: Field.textarea({ label: 'Description' })
1414
}
1515
});

0 commit comments

Comments
 (0)