We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea519e4 commit ccd9458Copy full SHA for ccd9458
src/components/changeset/dto/changeset.args.ts
@@ -24,14 +24,11 @@ export const IdsAndViewArg = () =>
24
export class ObjectViewPipe implements PipeTransform {
25
constructor(private readonly validator: ValidationPipe) {}
26
27
- async transform({ id, changeset }: ChangesetIds) {
28
- await this.validator.transform(
29
- { id, changeset },
30
- {
31
- metatype: ChangesetIds,
32
- type: 'body',
33
- },
34
- );
+ async transform(input: ChangesetIds) {
+ const { id, changeset } = await this.validator.transform(input, {
+ metatype: ChangesetIds,
+ type: 'body',
+ });
35
const view: ObjectView = changeset ? { changeset } : { active: true };
36
return { id, changeset, view };
37
}
0 commit comments