Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Course creation in backoffice is broken #233

Open
dagi3d opened this issue Feb 20, 2021 · 0 comments
Open

Course creation in backoffice is broken #233

dagi3d opened this issue Feb 20, 2021 · 0 comments

Comments

@dagi3d
Copy link

dagi3d commented Feb 20, 2021

Since it uses the request->getAlpha() method to get the request parameters, it ends sending an invalid uuid(and also sends incomplete values for the rest of params)

{"code":"invalid_argument_exception","message":"\u003CCodelyTv\\Mooc\\Shared\\Domain\\Courses\\CourseId\u003E does not allow the value \u003Cdcbacabaa\u003E."}

it should be changed to something like

    private function createCourse(Request $request): RedirectResponse
    {
        $this->dispatch(
            new CreateCourseCommand(
                $request->request->get('id'),
                $request->request->get('name'),
                $request->request->get('duration')
            )
        );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant