feat(problems/new_remote): provider name as initial tag
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2023-01-28 09:40:46 +08:00
parent bc18403973
commit e9abdd53ae
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -107,6 +107,13 @@ $new_remote_problem_form->handle = function (&$vdata) {
]); ]);
dataNewProblem($id); dataNewProblem($id);
DB::insert([
"insert into problems_tags",
"(problem_id, tag)",
"values",
DB::tuple([$id, $remote_provider['name']]),
]);
redirectTo("/problem/{$id}"); redirectTo("/problem/{$id}");
die(); die();
}; };