File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -325,7 +325,7 @@ export class CreateUsers implements SeedsInterface {
325325 public async seed(factory : FactoryInterface ): Promise <any > {
326326 await factory
327327 .get (User )
328- .create (10 );
328+ .createMany (10 );
329329 }
330330
331331}
@@ -339,7 +339,7 @@ export class CreateUsers implements SeedsInterface {
339339 public async seed(factory : FactoryInterface ): Promise <any > {
340340 await factory
341341 .get (User , ' admin' )
342- .create (1 );
342+ .create ();
343343 }
344344
345345}
@@ -353,7 +353,7 @@ await factory.get(User)
353353 .each (async (user : User ) => {
354354
355355 const pets: Pet [] = await factory .get (Pet )
356- .create (2 );
356+ .createMany (2 );
357357
358358 const petIds = pets .map ((pet : Pet ) => pet .Id );
359359 await user .pets ().attach (petIds );
@@ -387,6 +387,7 @@ npm start db.seed
387387| [Auth0 API Documentation](https://auth0.com/docs/api/management/v2) | Authentification service |
388388| [Jest](http://facebook.github.io/jest/) | Delightful JavaScript Testing Library for unit and e2e tests |
389389| [supertest](https://github.com/visionmedia/supertest) | Super-agent driven library for testing node.js HTTP servers using a fluent API |
390+ | [nock](https://github.com/node-nock/nock) | HTTP mocking and expectations library |
390391| [swagger Documentation](http://swagger.io/) | API Tool to describe and document your api. |
391392| [SQLite Documentation](https://www.sitepoint.com/getting-started-sqlite3-basic-commands/) | Getting Started with SQLite3 – Basic Commands. |
392393| [GraphQL Documentation](http://graphql.org/graphql-js/) | A query language for your API. |
You can’t perform that action at this time.
0 commit comments