Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
HUAHUAI23 committed Aug 13, 2024
1 parent 032f802 commit 945d2f2
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions server/src/instance/instance.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,17 @@ export class InstanceService {
// db connection uri
let dbConnectionUri: string
const dedicatedDatabase = await this.dedicatedDatabaseService.findOne(appid)

if (dedicatedDatabase) {
dbConnectionUri = await this.dedicatedDatabaseService.getConnectionUri(
user,
dedicatedDatabase,
)
try {
dbConnectionUri = await this.dedicatedDatabaseService.getConnectionUri(
user,
dedicatedDatabase,
)
} catch (e) {
this.logger.debug(`get db connection uri failed: ${e.message}`)
dbConnectionUri = ''
}
}

const NODE_MODULES_PUSH_URL =
Expand Down

0 comments on commit 945d2f2

Please sign in to comment.