Skip to content
Snippets Groups Projects
Commit 37cd1d74 authored by Chif Gergő's avatar Chif Gergő
Browse files

Delete wrong shema, import the news interface

parent d8faebc7
No related branches found
No related tags found
2 merge requests!10Feature/12 dev auto deploy,!6Feature/news api
export interface News {
author: {
_id: Number,
userName: string,
},
editedBy?: {
_id: number,
userName: String,
},
title: string,
text: string,
publishDate: Date,
}
\ No newline at end of file
import { Document, Schema, model } from 'mongoose';
interface INews extends Document {
export interface INews extends Document {
title : string
text : string
/* author : {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment