|
|
|
@ -514,7 +514,7 @@ export default class Problem extends Model {
|
|
|
|
|
await entityManager.query('UPDATE `judge_state` SET `problem_id` = ' + id + ' WHERE `problem_id` = ' + this.id); |
|
|
|
|
await entityManager.query('UPDATE `problem_tag_map` SET `problem_id` = ' + id + ' WHERE `problem_id` = ' + this.id); |
|
|
|
|
await entityManager.query('UPDATE `article` SET `problem_id` = ' + id + ' WHERE `problem_id` = ' + this.id); |
|
|
|
|
await entityManager.query('UPDATE `SubmissionStatictics` SET `problem_id` = ' + id + ' WHERE `problem_id` = ' + this.id); |
|
|
|
|
await entityManager.query('UPDATE `submission_statictics` SET `problem_id` = ' + id + ' WHERE `problem_id` = ' + this.id); |
|
|
|
|
|
|
|
|
|
let contests = await Contest.find(); |
|
|
|
|
for (let contest of contests) { |
|
|
|
|