Skip to content

Commit

Permalink
set default as blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisCarriere committed Oct 25, 2023
1 parent d372cc1 commit 07dd842
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ HOST=http://127.0.0.1:8123
DATABASE=default
USERNAME=default
PASSWORD=
TABLE=block
TABLE=blocks
MAX_LIMIT=500

# Logging
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ HOST=http://127.0.0.1:8123
DATABASE=default
USERNAME=default
PASSWORD=
TABLE=block
TABLE=blocks
MAX_LIMIT=500
# Logging
Expand All @@ -75,7 +75,7 @@ Options:
--username <string> Database user (default: "default", env: USERNAME)
--password <string> Password associated with the specified username (default: "", env: PASSWORD)
--database <string> The database to use inside ClickHouse (default: "default", env: DATABASE)
--table <string> Clickhouse table name (default: "block", env: TABLE)
--table <string> Clickhouse table name (default: "blocks", env: TABLE)
--max-limit <number> Maximum LIMIT queries (default: 500, env: MAX_LIMIT)
-h, --help display help for command
```
Expand Down
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const DEFAULT_PORT = "8080";
export const DEFAULT_HOSTNAME = "localhost";
export const DEFAULT_HOST = "http://localhost:8123";
export const DEFAULT_DATABASE = "default";
export const DEFAULT_TABLE = "block";
export const DEFAULT_TABLE = "blocks";
export const DEFAULT_USERNAME = "default";
export const DEFAULT_PASSWORD = "";
export const DEFAULT_MAX_LIMIT = 500;
Expand Down
1 change: 1 addition & 0 deletions src/fetch/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export default new OpenApiBuilder()
title: pkg.name,
version: pkg.version,
description: pkg.description,
license: {name: pkg.license},
})
.addExternalDocs({ url: pkg.homepage, description: "Extra documentation" })
.addSecurityScheme("auth-key", { type: "http", scheme: "bearer" })
Expand Down

0 comments on commit 07dd842

Please sign in to comment.