add new form by id pipe
This commit is contained in:
parent
fe3821ad42
commit
4a19bd5ca4
@ -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
|
||||
|
||||
|
||||
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user