@punks/backend-entity-manager 0.0.399 → 0.0.400
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 +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/platforms/nest/decorators/pipelines.d.ts +0 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/platforms/nest/decorators/pipelines.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/package.json +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export type PipelineTemplateProps = {
|
|
2
2
|
name: string;
|
|
3
|
-
description?: string;
|
|
4
3
|
};
|
|
5
4
|
export declare const WpPipeline: (name: string, props?: Omit<PipelineTemplateProps, "name">) => <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol | undefined, descriptor?: TypedPropertyDescriptor<Y> | undefined) => void;
|
package/dist/esm/index.js
CHANGED
|
@@ -1070,7 +1070,7 @@ class EntityUpdateCommand {
|
|
|
1070
1070
|
}
|
|
1071
1071
|
const authorizationResult = await authorization.canUpdate(currentEntity, context);
|
|
1072
1072
|
if (!authorizationResult.isAuthorized)
|
|
1073
|
-
throw new EntityOperationUnauthorizedException(EntityOperationType.
|
|
1073
|
+
throw new EntityOperationUnauthorizedException(EntityOperationType.Update, this.services.getEntityName(), currentEntity);
|
|
1074
1074
|
}
|
|
1075
1075
|
async getContext() {
|
|
1076
1076
|
const authorization = this.services.resolveAuthorizationMiddleware();
|