소스 검색

chore: update READMEs

olivermrbl 2 년 전
부모
커밋
ad046b87fe
3개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  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
 JWT_SECRET=something
 COOKIE_SECRET=something
 COOKIE_SECRET=something
 
 
-DATABASE_URL="postgres://localhost/medusa-store"
 DATABASE_TYPE="postgres"
 DATABASE_TYPE="postgres"
 REDIS_URL=redis://localhost:6379
 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
 // src/models/post.ts
 
 
 import { BeforeInsert, Column, Entity, PrimaryColumn } from "typeorm";
 import { BeforeInsert, Column, Entity, PrimaryColumn } from "typeorm";
-import { BaseEntity, generateEntityId } from "@medusajs/utils";
+import { generateEntityId } from "@medusajs/utils";
+import { BaseEntity } from "@medusajs/medusa";
 
 
 @Entity()
 @Entity()
 export class Post extends BaseEntity {
 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
 // src/services/my-custom.ts
 
 
 import { Lifetime } from "awilix"
 import { Lifetime } from "awilix"
-import { TransactionBaseService } from "@medusajs/utils";
+import { TransactionBaseService } from "@medusajs/medusa";
 import { IEventBusService } from "@medusajs/types";
 import { IEventBusService } from "@medusajs/types";
 
 
 export default class MyCustomService extends TransactionBaseService {
 export default class MyCustomService extends TransactionBaseService {