Fakultas Ilmu Komputer UI

Commit fab3526f authored by MUHAMMAD AAQIL ABDULLAH's avatar MUHAMMAD AAQIL ABDULLAH
Browse files

Fix bug in BookService

parent f73597d2
Pipeline #134277 passed with stages
in 43 minutes and 42 seconds
......@@ -65,7 +65,7 @@ public class BookServiceImpl implements BookService {
public Book updateBook(String bookId, CreateBookForm form, MultipartFile image){
var bookIdNumber = Long.parseLong(bookId);
var book = bookRepository.findByBookId(bookIdNumber);
setBookData(book, form, null);
setBookData(book, form, image);
bookRepository.save(book);
return book;
}
......
......@@ -16,7 +16,7 @@ admin.email = ${ADMIN_EMAIL}
spring.servlet.multipart.max-file-size=128KB
spring.servlet.multipart.max-request-size=128KB
spring.jpa.hibernate.ddl-auto=update
spring.jpa.hibernate.ddl-auto=create-drop
spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
server.error.whitelabel.enabled=false
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment