mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 05:25:40 +09:00
feat(enforcement): record decisions and send notices (#3492)
This commit is contained in:
1 parent
da1842ecab
commit
f5c30fdf8f
383 files changed
+29692
-4139
No files matched your search
@@ -2,9 +2,10 @@
|
||||
|
||||
import {APIErrorCodes} from '@fluxer/constants/src/ApiErrorCodes';
|
||||
import {ForbiddenError} from '@fluxer/errors/src/domains/core/ForbiddenError';
|
||||
import type {EnforcementNotice} from '@fluxer/schema/src/domains/auth/EnforcementNoticeSchemas';
|
||||
|
||||
export class AccountPermanentlySuspendedError extends ForbiddenError {
|
||||
constructor() {
|
||||
super({code: APIErrorCodes.ACCOUNT_SUSPENDED_PERMANENTLY});
|
||||
constructor(notice: EnforcementNotice | null) {
|
||||
super({code: APIErrorCodes.ACCOUNT_SUSPENDED_PERMANENTLY, data: {notice}});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user