From 2a1960a4e9cca4b7bc22c09e70fc1ed406d14ded Mon Sep 17 00:00:00 2001 From: Raffone17 Date: Wed, 17 Nov 2021 09:43:25 +0100 Subject: [PATCH] Fix Book interface --- server/interfaces/models/IBook.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/interfaces/models/IBook.ts b/server/interfaces/models/IBook.ts index e54e9c2..76e858c 100644 --- a/server/interfaces/models/IBook.ts +++ b/server/interfaces/models/IBook.ts @@ -1,9 +1,10 @@ +import { ObjectID } from "bson"; import { IModel } from "./IModel"; export interface IBook { _id: string; title: string; - authors: string[]; + authors: string[] | ObjectID[]; genres: string[]; location: string; owner: string;