@punks/backend-entity-manager 0.0.115 → 0.0.116
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 +6 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/platforms/nest/__test__/server/app/appAdmin/templates/index.d.ts +2 -1
- package/dist/cjs/types/platforms/nest/__test__/server/app/appAdmin/templates/user-update/index.d.ts +3 -1
- package/dist/cjs/types/platforms/nest/extensions/authentication/types/index.d.ts +1 -1
- package/dist/esm/index.js +6 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/platforms/nest/__test__/server/app/appAdmin/templates/index.d.ts +2 -1
- package/dist/esm/types/platforms/nest/__test__/server/app/appAdmin/templates/user-update/index.d.ts +3 -1
- package/dist/esm/types/platforms/nest/extensions/authentication/types/index.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -2371,7 +2371,7 @@ const Public = () => common.SetMetadata(AuthenticationGuardsSymbols.Public, true
|
|
|
2371
2371
|
const Authenticated = () => common.SetMetadata(AuthenticationGuardsSymbols.Authenticated, true);
|
|
2372
2372
|
const Roles = (...roles) => common.SetMetadata(AuthenticationGuardsSymbols.Roles, roles);
|
|
2373
2373
|
const MemberOf = (...groups) => common.SetMetadata(AuthenticationGuardsSymbols.MemberOf, groups);
|
|
2374
|
-
const buildRolesGuard = ({ mainRole, inheritedRoles, }, options) => Roles(mainRole.uid, ...(options?.
|
|
2374
|
+
const buildRolesGuard = ({ mainRole, inheritedRoles, }, options) => Roles(mainRole.uid, ...(!options?.exact && inheritedRoles
|
|
2375
2375
|
? inheritedRoles.map((role) => role.uid)
|
|
2376
2376
|
: []));
|
|
2377
2377
|
|
|
@@ -22027,6 +22027,11 @@ class TypeOrmRepository {
|
|
|
22027
22027
|
throw new Error("Invalid 'id' parameter.");
|
|
22028
22028
|
}
|
|
22029
22029
|
this.logger.debug("Updating entity", { id, entity });
|
|
22030
|
+
// await this.innerRepository.preload(id as any)
|
|
22031
|
+
// await this.innerRepository.save({
|
|
22032
|
+
// id,
|
|
22033
|
+
// ...entity,
|
|
22034
|
+
// } as unknown as TEntity)
|
|
22030
22035
|
await this.innerRepository.update(id, entity);
|
|
22031
22036
|
const current = await this.get(id);
|
|
22032
22037
|
if (!current) {
|