From 72345de1a40165bc5af53f6868f8363637608b3a Mon Sep 17 00:00:00 2001 From: alv67 Date: Fri, 30 Jul 2021 12:23:19 +0000 Subject: [PATCH] Mergeable - Book Del-Add-Edit TODO-Authors&Genres --- client/src/routes/books.svelte | 6 +++--- docker-compose.yml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/src/routes/books.svelte b/client/src/routes/books.svelte index 130daf0..f9680a4 100644 --- a/client/src/routes/books.svelte +++ b/client/src/routes/books.svelte @@ -37,7 +37,7 @@ } function deleteBook(book) { - const path = `${apiPath}/${book.id}`; + const path = `${apiPath}/${book._id}`; axios .delete(path) .then(() => { @@ -217,9 +217,9 @@ {#if updateopen} - + {:else} - + {/if} diff --git a/docker-compose.yml b/docker-compose.yml index 7fa60b6..4106443 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,8 +1,8 @@ version: '3' services: - # static-pages: - # build: client + static-pages: + build: client server: build: . # restart: always