diff --git a/.env.example b/.env.example index 9ad47be..6445719 100644 --- a/.env.example +++ b/.env.example @@ -7,7 +7,7 @@ HOST=http://127.0.0.1:8123 DATABASE=default USERNAME=default PASSWORD= -TABLE=block +TABLE=blocks MAX_LIMIT=500 # Logging diff --git a/README.md b/README.md index 2704855..90ddf16 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ HOST=http://127.0.0.1:8123 DATABASE=default USERNAME=default PASSWORD= -TABLE=block +TABLE=blocks MAX_LIMIT=500 # Logging @@ -75,7 +75,7 @@ Options: --username Database user (default: "default", env: USERNAME) --password Password associated with the specified username (default: "", env: PASSWORD) --database The database to use inside ClickHouse (default: "default", env: DATABASE) - --table Clickhouse table name (default: "block", env: TABLE) + --table Clickhouse table name (default: "blocks", env: TABLE) --max-limit Maximum LIMIT queries (default: 500, env: MAX_LIMIT) -h, --help display help for command ``` diff --git a/src/config.ts b/src/config.ts index ba0160b..0a8dd73 100644 --- a/src/config.ts +++ b/src/config.ts @@ -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; diff --git a/src/fetch/openapi.ts b/src/fetch/openapi.ts index a29fe4a..8b25e36 100644 --- a/src/fetch/openapi.ts +++ b/src/fetch/openapi.ts @@ -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" })