Browse Source

add search-url parameter to init-db function in nera package.

search-url is part of the site-settings class. It is used to help tell the
system which URL to use for the Meilisearch instance this website's search
features are utilising/calling out to.
stable
Craig Oates 2 years ago
parent
commit
e9f679bece
  1. 5
      src/nera.lisp

5
src/nera.lisp

@ -57,8 +57,8 @@
(defun init-db (request) (defun init-db (request)
"Creates the database and creates Admin. in `USER' table." "Creates the database and creates Admin. in `USER' table."
(destructuring-bind (destructuring-bind
(&key site-name allow-sign-up show-site-logo username display-name password (&key site-name allow-sign-up show-site-logo username display-name
&allow-other-keys) password search-url &allow-other-keys)
(utils:request-params request) (utils:request-params request)
(with-connection (db) (with-connection (db)
;; Add to the list to add more tables. ;; Add to the list to add more tables.
@ -70,6 +70,7 @@
:administrator +true+) :administrator +true+)
(mito:create-dao 'site-settings (mito:create-dao 'site-settings
:site-name site-name :site-name site-name
:search-url search-url
:enable-sign-up (utils:checkbox-to-bool allow-sign-up) :enable-sign-up (utils:checkbox-to-bool allow-sign-up)
:enable-site-logo (utils:checkbox-to-bool show-site-logo)) :enable-site-logo (utils:checkbox-to-bool show-site-logo))
(mito:create-dao 'page (mito:create-dao 'page

Loading…
Cancel
Save