From c02982ebe96e18098ecb5fea7e0ab541f10bbf20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Andr=C3=A9s=20Trujillo?= Date: Wed, 22 Nov 2023 15:51:51 +0100 Subject: [PATCH] feat: add book repository --- src/core/book/domain/services/book.repository.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/book/domain/services/book.repository.ts b/src/core/book/domain/services/book.repository.ts index 36eacd3..060732b 100644 --- a/src/core/book/domain/services/book.repository.ts +++ b/src/core/book/domain/services/book.repository.ts @@ -1,9 +1,9 @@ -import User from '@/core/user/domain/model/user.entity' +import Book from '@/core/book/domain/model/book.entity' -export default interface Users { +export default interface Books { // Finds a user by email - findByEmail(email: string): Promise + findAll(): Promise // Saves a user - save(user: User): Promise + save(user: Book): Promise }