@punks/backend-entity-manager 0.0.484 → 0.0.485
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +7 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +8 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { Log, csvParse, excelParse, ExcelKeyTransform, excelBuild, csvBuild, map
|
|
|
2
2
|
import { QueryCommand, ScanCommand, GetItemCommand, PutItemCommand, DeleteItemCommand, DynamoDBClient } from '@aws-sdk/client-dynamodb';
|
|
3
3
|
import { unmarshall, marshall } from '@aws-sdk/util-dynamodb';
|
|
4
4
|
import { Module, applyDecorators, Injectable, SetMetadata, createParamDecorator, Global, Scope, Inject, Logger, StreamableFile, HttpException, HttpStatus } from '@nestjs/common';
|
|
5
|
-
import { MoreThanOrEqual, Equal, Not, IsNull, And, MoreThan, LessThanOrEqual, LessThan, ILike, Like, In, Or, Repository } from 'typeorm';
|
|
5
|
+
import { MoreThanOrEqual, Equal, Not, IsNull, And, MoreThan, LessThanOrEqual, LessThan, ILike, Like, Between, In, Or, Repository } from 'typeorm';
|
|
6
6
|
import { Reflector } from '@nestjs/core';
|
|
7
7
|
import { AsyncLocalStorage } from 'async_hooks';
|
|
8
8
|
import { hash } from 'bcrypt';
|
|
@@ -3729,6 +3729,13 @@ class QueryClauseBuilder {
|
|
|
3729
3729
|
}
|
|
3730
3730
|
dateFilter(filter) {
|
|
3731
3731
|
const clauses = [];
|
|
3732
|
+
if (!isNullOrUndefined(filter?.eq)) {
|
|
3733
|
+
const startOfDay = new Date(filter.eq);
|
|
3734
|
+
startOfDay.setHours(0, 0, 0, 0);
|
|
3735
|
+
const endOfDay = new Date(filter.eq);
|
|
3736
|
+
endOfDay.setHours(23, 59, 59, 999);
|
|
3737
|
+
clauses.push(Between(startOfDay, endOfDay));
|
|
3738
|
+
}
|
|
3732
3739
|
if (!isNullOrUndefined(filter?.gte)) {
|
|
3733
3740
|
clauses.push(MoreThanOrEqual(filter.gte));
|
|
3734
3741
|
}
|