1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-23 13:46:45 +02:00

Fix: cast segment id to number before passing it on.

This commit is contained in:
Thomas Heartman 2023-11-21 11:17:42 +01:00
parent 66d43de8fd
commit cdd0278c79
No known key found for this signature in database
GPG Key ID: BD1F880DAED1EE78

View File

@ -347,7 +347,7 @@ export class SegmentsController extends Controller {
req: IAuthRequest<{ id: number }>,
res: Response<SegmentStrategiesSchema>,
): Promise<void> {
const { id } = req.params;
const id = Number(req.params.id);
const { user } = req;
const strategies = await this.segmentService.getVisibleStrategies(
id,