|
@@ -328,8 +328,7 @@ namespace TEAMModelOS.Controllers.Common
|
|
|
}
|
|
|
if (flag) {
|
|
|
study.ttl = 1;
|
|
|
- study.status = 404;
|
|
|
- study = await client.GetContainer(Constant.TEAMModelOS, "Common").ReplaceItemAsync(study, study.id, new PartitionKey($"{study.code}"));
|
|
|
+ study.status = 404;
|
|
|
if (!string.IsNullOrEmpty(study.examId))
|
|
|
{
|
|
|
ExamLite lite = await client.GetContainer("TEAMModelOS", "Common").ReadItemAsync<ExamLite>(study.examId, new PartitionKey($"ExamLite-{code}"));
|
|
@@ -353,6 +352,7 @@ namespace TEAMModelOS.Controllers.Common
|
|
|
await client.GetContainer("TEAMModelOS", "Common").ReplaceItemAsync(homework, homework.id, new PartitionKey($"Homework-{code}"));
|
|
|
//await client.GetContainer("TEAMModelOS", "Common").DeleteItemStreamAsync(study.workId, new PartitionKey($"Homework-{code}"));
|
|
|
}
|
|
|
+ study = await client.GetContainer(Constant.TEAMModelOS, "Common").ReplaceItemAsync(study, study.id, new PartitionKey($"{study.code}"));
|
|
|
}
|
|
|
|
|
|
}
|