Skip to content

Commit

Permalink
revert: resolve platform id
Browse files Browse the repository at this point in the history
  • Loading branch information
abuaboud committed Feb 4, 2024
1 parent 67546b7 commit bbd693d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/backend/src/app/ee/platform/lib/platform-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import { FastifyRequest } from 'fastify'
import { customDomainService } from '../../custom-domains/custom-domain.service'
import { getEdition } from '../../../helper/secret-helper'
import { platformService } from '../platform.service'
import { system } from '../../../helper/system/system'
import { SystemProp } from '../../../helper/system/system-prop'

const edition = getEdition()

Expand All @@ -31,5 +29,5 @@ async function getDefaultPlatformId(): Promise<null | string> {
const platform = await platformService.getOldestPlatform()
return platform?.id ?? null
}
return system.getOrThrow(SystemProp.CLOUD_PLATFORM_ID)
return null
}

0 comments on commit bbd693d

Please sign in to comment.