diff options
Diffstat (limited to 'src/controller/routes.phel')
| -rw-r--r-- | src/controller/routes.phel | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controller/routes.phel b/src/controller/routes.phel index f6ec95e..acfc2af 100644 --- a/src/controller/routes.phel +++ b/src/controller/routes.phel @@ -34,7 +34,7 @@ (for [a :in authors] (pdo/insert conn :authors_books {:book_id book-id :author_id (or (pdo/fetch-column (pdo/query conn "select id from authors where name = :name" {:name a})) - (pdo/insert conn :authors {:name a + (pdo/insert conn :authors {:name (str/trim a) :created_at time :updated_at time}))}))))) (h/response-from-map {:status 301 :headers {:location "/"}})) |
