auth/app_settings_queries.ts view source
(deps: QueryDeps): Promise<AppSettings> Load the current app settings.
deps
query dependencies
type QueryDeps
returns
Promise<AppSettings> the app settings row
App settings database queries.
Single-row table queries for global app configuration.
3 declarations
auth/app_settings_queries.ts view source
(deps: QueryDeps): Promise<AppSettings> Load the current app settings.
depsquery dependencies
Promise<AppSettings> the app settings row
auth/app_settings_queries.ts view source
(deps: QueryDeps): Promise<{ open_signup: boolean; updated_at: string | null; updated_by: string | null; updated_by_username: string | null; }> Load the current app settings with resolved updater username.
depsquery dependencies
Promise<{ open_signup: boolean; updated_at: string | null; updated_by: string | null; updated_by_username: string | null; }> the app settings with updated_by_username
auth/app_settings_queries.ts view source
(deps: QueryDeps, open_signup: boolean, actor_id: string): Promise<AppSettings> Update app settings and return the updated row.
depsquery dependencies
open_signupnew value for the open_signup toggle
booleanactor_idthe actor making the change
stringPromise<AppSettings> the updated app settings row