Commit 6b6f0134 authored by Цой Данил's avatar Цой Данил 💬

#1 added new interfaces for artist and artistDto

parent 20aea18b
import { Document, ObjectId } from "mongoose"
export default interface IArtist extends Document{
_id: ObjectId
name: string;
photo: string;
information: string;
}
\ No newline at end of file
import IArtist from "./IArtist";
export default interface IArtistDto {
name: IArtist['name']
photo: File
information: IArtist['information']
}
\ No newline at end of file
...@@ -16,7 +16,7 @@ export class MongooseDB { ...@@ -16,7 +16,7 @@ export class MongooseDB {
console.log('Server connected to MongoDB'); console.log('Server connected to MongoDB');
} catch (err) { } catch (err) {
const error = err as Error; const error = err as Error;
console.error('Connected error MongoDB:', error); console.error('Connected error MongooseDB:', error);
} }
} }
} }
......
Markdown is supported
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