diff --git a/app/controllers/submissions_controller.rb b/app/controllers/submissions_controller.rb index 8ae87010..59a05ab6 100644 --- a/app/controllers/submissions_controller.rb +++ b/app/controllers/submissions_controller.rb @@ -134,7 +134,7 @@ class SubmissionsController < ApplicationController end def store_error(stderr) - ::Error.create(execution_environment_id: @submission.execution_environment.id, message: stderr) + ::Error.create(submission_id: @submission.id, execution_environment_id: @submission.execution_environment.id, message: stderr) end private :store_error