Skip to content

Commit

Permalink
turn off logging
Browse files Browse the repository at this point in the history
  • Loading branch information
xen-HendryZheng committed Jul 19, 2023
1 parent 6a89983 commit 83c81f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/data-source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const AppDataSource = new DataSource({
password: PGPASSWORD,
database: PGDATABASE,
synchronize: true,
logging: true,
logging: false,
entities: entities,
migrations: [
],
Expand Down
4 changes: 4 additions & 0 deletions backend/src/services/bid.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ export class BidService {
{ itemStatus: ITEM_STATUS.PUBLISHED, itemExpiredAt: LessThan(new Date()) },
]
});
if (!publishedItem.length) {
console.log(`SKIPPED - No Published Item yet`)
return;
}
console.log(`1. Get list of published item and ended auction, publishedItem.length=`, publishedItem.length)

// 2. Loop each ended auction item
Expand Down

0 comments on commit 83c81f5

Please sign in to comment.