Skip to content

Commit

Permalink
use default tenantId on creating the default tenant
Browse files Browse the repository at this point in the history
  • Loading branch information
epipav committed Jan 15, 2025
1 parent a21c9e3 commit 1482924
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/services/tenantService.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Error400, Error404 } from '@crowd/common'
import { Error400, Error404, getDefaultTenantId } from '@crowd/common'
import { queryConversations } from '@crowd/data-access-layer'
import { DEFAULT_MEMBER_ATTRIBUTES } from '@crowd/integrations'
import { SegmentData, SegmentStatus } from '@crowd/types'
Expand Down Expand Up @@ -65,7 +65,7 @@ export default class TenantService {
})
}

const record = await this.create({ name: 'default', url: 'default', integrationsRequired: [] })
const record = await this.create({ id: getDefaultTenantId(), name: 'default', url: 'default', integrationsRequired: [] })

await SettingsService.findOrCreateDefault({
...this.options,
Expand Down

0 comments on commit 1482924

Please sign in to comment.