mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: move problem/del to problem/delete
This commit is contained in:
5 files changed
+3
-5
No files matched your search
@@ -73,7 +73,7 @@ export class SonicService extends Service {
|
||||
.then(() => this.push('problem', `${pdoc.domainId}@content`, id, pdoc.content.toString())),
|
||||
]).catch((e) => logger.error(e));
|
||||
});
|
||||
yield this.ctx.on('problem/del', async (domainId, docId) => {
|
||||
yield this.ctx.on('problem/delete', async (domainId, docId) => {
|
||||
const id = `${domainId}/${docId}`;
|
||||
await Promise.all([
|
||||
this.flusho('problem', `${domainId}@title`, id),
|
||||
|
||||
Reference in new issue
Block a user