Skip to content

Commit

Permalink
added some books
Browse files Browse the repository at this point in the history
  • Loading branch information
WAPEETY committed Jun 20, 2024
1 parent 78e6b79 commit 65704a3
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
26 changes: 26 additions & 0 deletions api/seed-data/books/books.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,31 @@
"open_date": "2024-05-10T00:00:00Z",
"close_date": "2024-05-20T00:00:00Z",
"banned": true
},
{
"owner": "rossi.parenzo",
"title": "1984",
"author": "George Orwell",
"isbn": "0667454105824",
"start_price":20,
"reserve_price":20,
"cover":"1984.jpg",
"degree_course":"Diritto dell'informatica",
"open_date":"2024-06-22T00:00:00Z",
"close_date":"2024-06-24T00:00:00Z",
"banned":false
},
{
"owner": "rossi.parenzo",
"title": "Fondamenti di basi di dati",
"author": "Non mi ricordo",
"isbn": "1557454130122",
"start_price":20,
"reserve_price":20,
"cover":"1984.jpg",
"degree_course":"Diritto dell'informatica",
"open_date":"2024-06-20T00:00:00Z",
"close_date":"2024-06-20T15:00:00Z",
"banned":false
}
]
2 changes: 0 additions & 2 deletions api/src/seeds/book.seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import mongoose from 'mongoose';
import logger from '../logger'
import { Book } from '../models/book.model'
import fs from 'fs';
import { User } from '../models/user.model';


export async function seedBooks(): Promise<void> {

Expand Down

0 comments on commit 65704a3

Please sign in to comment.