File tree 1 file changed +13
-2
lines changed
packages/twenty-server/src/database/typeorm-seeds/core
1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { DataSource } from 'typeorm' ;
2
2
3
- import { Workspace } from 'src/engine/core-modules/workspace/workspace.entity' ;
3
+ import {
4
+ Workspace ,
5
+ WorkspaceActivationStatus ,
6
+ } from 'src/engine/core-modules/workspace/workspace.entity' ;
4
7
5
8
const tableName = 'workspace' ;
6
9
@@ -15,7 +18,12 @@ export const seedWorkspaces = async (
15
18
const workspaces : {
16
19
[ key : string ] : Pick <
17
20
Workspace ,
18
- 'id' | 'displayName' | 'domainName' | 'inviteHash' | 'logo'
21
+ | 'id'
22
+ | 'displayName'
23
+ | 'domainName'
24
+ | 'inviteHash'
25
+ | 'logo'
26
+ | 'activationStatus'
19
27
> ;
20
28
} = {
21
29
[ SEED_APPLE_WORKSPACE_ID ] : {
@@ -24,13 +32,15 @@ export const seedWorkspaces = async (
24
32
domainName : 'apple.dev' ,
25
33
inviteHash : 'apple.dev-invite-hash' ,
26
34
logo : 'https://twentyhq.github.io/placeholder-images/workspaces/apple-logo.png' ,
35
+ activationStatus : WorkspaceActivationStatus . ACTIVE ,
27
36
} ,
28
37
[ SEED_TWENTY_WORKSPACE_ID ] : {
29
38
id : workspaceId ,
30
39
displayName : 'Twenty' ,
31
40
domainName : 'twenty.dev' ,
32
41
inviteHash : 'twenty.dev-invite-hash' ,
33
42
logo : 'https://twentyhq.github.io/placeholder-images/workspaces/twenty-logo.png' ,
43
+ activationStatus : WorkspaceActivationStatus . ACTIVE ,
34
44
} ,
35
45
} ;
36
46
@@ -43,6 +53,7 @@ export const seedWorkspaces = async (
43
53
'domainName' ,
44
54
'inviteHash' ,
45
55
'logo' ,
56
+ 'activationStatus' ,
46
57
] )
47
58
. orIgnore ( )
48
59
. values ( workspaces [ workspaceId ] )
You can’t perform that action at this time.
0 commit comments