修复discussion模块

This commit is contained in:
undefined committed 2020-05-01 18:43:40 +08:00
1 parent 2554cf660a
commit 33e277f28f
30 files changed
+2460 -187

No files matched your search

+8 -6
View File
@@ -225,6 +225,13 @@ class DiscussionNotFoundError extends NotFoundError {
}
}
class MessageNotFoundError extends NotFoundError {
constructor(mid) {
super('Message {0} not found.');
this.params = [mid];
}
}
global.Hydro.error = module.exports = {
BadRequestError,
BlacklistedError,
@@ -258,6 +265,7 @@ global.Hydro.error = module.exports = {
DocumentNotFoundError,
DiscussionNotFoundError,
RoleAlreadyExistError,
MessageNotFoundError,
};
/*
@@ -314,12 +322,6 @@ class DiscussionNodeAlreadyExistError(ForbiddenError):
return 'Discussion node {1} already exists.'
class MessageNotFoundError(NotFoundError):
@property
def message(self):
return 'Message {0} not found.'
class TrainingRequirementNotSatisfiedError(ForbiddenError):
@property
def message(self):