Skip to content

Commit 161421e

Browse files
committed
refactor(generators/with-postgres-typeorm): change component model import path
1 parent 72a3ee3 commit 161421e

File tree

1 file changed

+3
-3
lines changed
  • generators/with-postgres-typeorm/templates/src/db

1 file changed

+3
-3
lines changed

generators/with-postgres-typeorm/templates/src/db/postgres.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ import { createConnection } from 'typeorm';
22
import logger from '@boringcodes/utils/logger';
33

44
import config from '../config/postgres';
5-
// TODO: import schemas
6-
// import Thing from '../components/things/schema';
5+
// TODO: import models
6+
// import Thing from '../components/things/model';
77

88
// connect postgres
99
const connect = async (): Promise<void> => {
1010
try {
1111
await createConnection({
1212
type: 'postgres',
1313
url: config.uri,
14-
// TODO: register schemas to connection
14+
// TODO: register models to connection
1515
// entities: [Thing],
1616
synchronize: true,
1717
});

0 commit comments

Comments
 (0)