Skip to content

Refactor db.ts for conditional database imports#240

Open
izzudin96 wants to merge 1 commit intobigcommerce:mainfrom
izzudin96:main
Open

Refactor db.ts for conditional database imports#240
izzudin96 wants to merge 1 commit intobigcommerce:mainfrom
izzudin96:main

Conversation

@izzudin96
Copy link

Refactor database import to use require for conditional loading based on DB_TYPE.

What?

Getting error when DB_TYPE is set to mysql.
FirebaseAppError: Failed to parse private key: Error: Invalid PEM formatted message. at new ServiceAccount

Why?

Fix error when using mysql

Testing / Proof

No error after this change when using mysql

@bigcommerce/api-client-developers

Refactor database import to use require for conditional loading based on DB_TYPE.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant