Skip to content

Commit 6845923

Browse files
committed
fix: fix typo in create-app command and update connector names in documentation for consistency
AdminForth/1710/update-cli-to-detect-database-
1 parent c3553e2 commit 6845923

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

adminforth/commands/createApp/utils.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,8 @@ async function writeTemplateFiles(dirname, cwd, useNpm, includePrismaMigrations,
316316
const packageManagerTemplateData = getPackageManagerTemplateData(useNpm, nodeMajor);
317317
const resolvedPrismaDbUrl = includePrismaMigrations ? prismaDbUrl : null;
318318
const resolvedPrismaDbUrlProd = includePrismaMigrations ? prismaDbUrlProd : null;
319-
const connectorProvider = provider === 'postgresql' ? 'postgres' : provider;
319+
const connectorProvider = provider === 'postgresql' ? 'postgres' :
320+
provider === 'mongodb' ? 'mongo' : provider;
320321

321322
// Build a list of files to generate
322323
const templateTasks = [

adminforth/documentation/docs/tutorial/04-connectors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ pnpm add @adminforth/connector-mysql
2929
```
3030
### Clickhouse
3131
```bash
32-
pnpm add @adminforth/connector-Clickhouse
32+
pnpm add @adminforth/connector-clickhouse
3333
```
3434

3535
### Mongo
3636
```bash
37-
pnpm add @adminforth/connector-Mongo
37+
pnpm add @adminforth/connector-congo
3838
```
3939

4040
### Qdrant

0 commit comments

Comments
 (0)