Skip to content

A full-featured CRM built with React, shadcn/ui, and Supabase.

Fix(crm): Update type + doc

Anthony Rimet8ab2b298284b
diff --git a/README.md b/README.md
index df0fd81b..e07dfe97 100644
--- a/README.md
+++ b/README.md
@@ -230,7 +230,7 @@ export const Dashboard = () => {
You can create a new migration using the following command:
```sh
-npx supabase migrate create <migration_name>
+npx supabase migration new <migration_name>
```
You can apply the migrations using the following command:
@@ -241,4 +241,4 @@ npx supabase migration up
But you can also apply changes in the database directly using the supabase Dashboard.
Create a new migration using the following command:
```sh
-npx supabase db diff | npx supabase migration create <migration_name>
\ No newline at end of file
+npx supabase db diff | npx supabase migration new <migration_name>
\ No newline at end of file
diff --git a/src/types.ts b/src/types.ts
index 4edb3b86..e60b3aff 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -126,7 +126,7 @@ export interface Task extends RaRecord {
text: string;
due_date: string;
done_date?: string | null;
- sales_id: Identifier;
+ sales_id?: Identifier;
}
export type ActivityCompanyCreated = {