mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: remove lib.logger
This commit is contained in:
1 parent
441515297a
commit
a58c36961f
6 files changed
+5
-47
No files matched your search
@@ -418,7 +418,6 @@ export class ProblemEditHandler extends ProblemManageHandler {
|
||||
@param('content', Types.String, isContent)
|
||||
async post(domainId: string, title: string, content: string) {
|
||||
const $update: Partial<Pdoc> = { title, content };
|
||||
console.log(this.request.body);
|
||||
if (this.request.body.pid) $update.pid = checkPid(this.request.body.pid);
|
||||
const pdoc = await problem.get(domainId, this.request.params.pid);
|
||||
await problem.edit(domainId, pdoc.docId, $update);
|
||||
|
||||
Reference in new issue
Block a user