Browse Source

chore: update READMEs

olivermrbl 2 years ago
parent
commit
ad046b87fe
3 changed files with 3 additions and 3 deletions
  1. 0 1
      .env.template
  2. 2 1
      src/models/README.md
  3. 1 1
      src/services/README.md

+ 0 - 1
.env.template

@@ -1,6 +1,5 @@
 JWT_SECRET=something
 COOKIE_SECRET=something
 
-DATABASE_URL="postgres://localhost/medusa-store"
 DATABASE_TYPE="postgres"
 REDIS_URL=redis://localhost:6379

+ 2 - 1
src/models/README.md

@@ -10,7 +10,8 @@ You may define custom models (entities) that will be registered on the global co
 // src/models/post.ts
 
 import { BeforeInsert, Column, Entity, PrimaryColumn } from "typeorm";
-import { BaseEntity, generateEntityId } from "@medusajs/utils";
+import { generateEntityId } from "@medusajs/utils";
+import { BaseEntity } from "@medusajs/medusa";
 
 @Entity()
 export class Post extends BaseEntity {

+ 1 - 1
src/services/README.md

@@ -6,7 +6,7 @@ You may define custom services that will be registered on the global container b
 // src/services/my-custom.ts
 
 import { Lifetime } from "awilix"
-import { TransactionBaseService } from "@medusajs/utils";
+import { TransactionBaseService } from "@medusajs/medusa";
 import { IEventBusService } from "@medusajs/types";
 
 export default class MyCustomService extends TransactionBaseService {