add new form by id pipe

This commit is contained in:
Michael Schramm 2022-03-01 08:40:25 +01:00
parent fe3821ad42
commit 4a19bd5ca4
2 changed files with 1 additions and 6 deletions

View File

@ -18,7 +18,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Security
- start using hashids to prevent insights into form ids
- start using hashids to prevent insights into form ids (https://hashids.org/javascript/)
## [1.0.0] - 2022-02-28

View File

@ -14,11 +14,6 @@ export class FormByIdPipe implements PipeTransform<string, Promise<FormEntity>>
async transform(value: string, metadata: ArgumentMetadata): Promise<FormEntity> {
const id = this.idService.decode(value)
console.log({
id,
value,
})
return await this.formService.findById(id)
}
}