Skip to content

A continuation of HomeBox the inventory and organization system built for the Home User

fix: borked doc param

Matthew Kilgore64b4173d1daa
diff --git a/Taskfile.yml b/Taskfile.yml
index ede909f1..f2bd78aa 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -33,7 +33,7 @@ tasks:
desc: Generates typescript types from swagger definition
cmds:
- |
- npx swagger-typescript-api \
+ pnpm dlx swagger-typescript-api generate \
--no-client \
--modular \
--path ./backend/app/api/static/docs/swagger.json \
diff --git a/docs/en/configure.md b/docs/en/configure.md
index 5554667b..1a568a65 100644
--- a/docs/en/configure.md
+++ b/docs/en/configure.md
@@ -30,7 +30,7 @@ aside: false
| HBOX_MAILER_FROM | | email from address to use |
| HBOX_SWAGGER_HOST | 7745 | swagger host to use, if not set swagger will be disabled |
| HBOX_SWAGGER_SCHEMA | `http` | swagger schema to use, can be one of: `http`, `https` |
-| HBOX_DATABASE_TYPE | sqlite3 | sets the correct database type (`sqlite3` or `postgres`) |
+| HBOX_DATABASE_DRIVER | sqlite3 | sets the correct database type (`sqlite3` or `postgres`) |
| HBOX_DATABASE_SQLITE_PATH | ./.data/homebox.db?_pragma=busy_timeout=999&_pragma=journal_mode=WAL&_fk=1 | sets the directory path for Sqlite |
| HBOX_DATABASE_HOST | | sets the hostname for a postgres database |
| HBOX_DATABASE_PORT | | sets the port for a postgres database |
@@ -87,7 +87,7 @@ OPTIONS
--demo/$HBOX_DEMO <bool>
--debug-enabled/$HBOX_DEBUG_ENABLED <bool> (default: false)
--debug-port/$HBOX_DEBUG_PORT <string> (default: 4000)
---database-type/$HBOX_DATABASE_TYPE <string> (default: sqlite3)
+--database-driver/$HBOX_DATABASE_DRIVER <string> (default: sqlite3)
--database-sqlite-path/$HBOX_DATABASE_SQLITE_PATH <string> (default: ./.data/homebox.db?_pragma=busy_timeout=999&_pragma=journal_mode=WAL&_fk=1)
--database-host/$HBOX_DATABASE_HOST <string>
--database-port/$HBOX_DATABASE_PORT <string>
diff --git a/frontend/lib/api/types/data-contracts.ts b/frontend/lib/api/types/data-contracts.ts
index 93260eda..b4a3d835 100644
--- a/frontend/lib/api/types/data-contracts.ts
+++ b/frontend/lib/api/types/data-contracts.ts
@@ -1,6 +1,7 @@
/* post-processed by ./scripts/process-types.go */
/* eslint-disable */
/* tslint:disable */
+// @ts-nocheck
/*
* ---------------------------------------------------------------
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
@@ -472,9 +473,3 @@ export interface ValidateErrorResponse {
error: string;
fields: string;
}
-
-export interface PhotoPreview {
- photoName: string;
- file: File;
- fileBase64: string,
-}