Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tamirGer committed Mar 17, 2024
1 parent 08b190a commit f869be3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/pages/marketplace/Marketplace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const Marketplace: FC<Props> = (props: Props) => {
? getLatestProducts().then((data) => setProducts(data))
: getProducts(
new Date(new Date().setFullYear(new Date().getFullYear() - 1)),
new Date()
new Date(new Date().setDate(new Date().getDate() + 1))
).then((data) => setProducts(data));
}, []);

Expand Down
2 changes: 1 addition & 1 deletion src/products/products.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class ProductsController {
): Promise<ProductDto[]> {
this.logger.debug('Get all products.');
let df = new Date(new Date().setFullYear(new Date().getFullYear() - 1));
let dt = new Date();
let dt = new Date(new Date().setDate(new Date().getDate() + 1));
if (dateFrom) {
df = this.parseDate(dateFrom);
}
Expand Down

0 comments on commit f869be3

Please sign in to comment.