@tstdl/base 0.92.63 → 0.92.64
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/orm/server/repository.js +10 -6
- package/package.json +1 -1
package/orm/server/repository.js
CHANGED
|
@@ -8,10 +8,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
11
14
|
import { count, eq, inArray, sql } from 'drizzle-orm';
|
|
12
15
|
import { PgTransaction as DrizzlePgTransaction } from 'drizzle-orm/pg-core';
|
|
13
16
|
import { NotFoundError } from '../../errors/not-found.error.js';
|
|
14
|
-
import { Singleton } from '../../injector/decorators.js';
|
|
17
|
+
import { Optional, Singleton } from '../../injector/decorators.js';
|
|
15
18
|
import { inject, injectArgument } from '../../injector/inject.js';
|
|
16
19
|
import { resolveArgumentType } from '../../injector/interfaces.js';
|
|
17
20
|
import { injectionToken } from '../../injector/token.js';
|
|
@@ -452,11 +455,12 @@ let EntityRepository = class EntityRepository {
|
|
|
452
455
|
}
|
|
453
456
|
};
|
|
454
457
|
EntityRepository = __decorate([
|
|
455
|
-
Singleton(
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
458
|
+
Singleton(),
|
|
459
|
+
__param(0, Optional()),
|
|
460
|
+
__param(1, Optional()),
|
|
461
|
+
__param(2, Optional()),
|
|
462
|
+
__param(3, Optional()),
|
|
463
|
+
__param(4, Optional()),
|
|
460
464
|
__metadata("design:paramtypes", [Object, Object, Array, Map, Object])
|
|
461
465
|
], EntityRepository);
|
|
462
466
|
export { EntityRepository };
|