Feat: Revoke Invitation Codes
This commit is contained in:
parent
a2f2f0268a
commit
0491042d95
|
@ -1115,6 +1115,8 @@ thisFlashRequiresTheFollowingPermissions: "This Play requires the following perm
|
|||
doYouWantToAllowThisPlayToAccessYourAccount: "Do you want to allow this Play to access your account?"
|
||||
translateProfile: "Translate profile"
|
||||
enableAbsoluteTime: "Enable Absolute Time"
|
||||
inviteRevoke: "Revoke All Invitation Codes"
|
||||
inviteRevokeConfirm: "Are you sure that you want to revoke all invitation codes?"
|
||||
_group:
|
||||
leader: "Group owner"
|
||||
banish: "Banish"
|
||||
|
|
|
@ -1115,6 +1115,8 @@ thisFlashRequiresTheFollowingPermissions: "このPlayは以下の権限を要求
|
|||
doYouWantToAllowThisPlayToAccessYourAccount: "このPlayによるアカウントへのアクセスを許可しますか?"
|
||||
translateProfile: "プロフィールを翻訳する"
|
||||
enableAbsoluteTime: "絶対時刻表記を使用する"
|
||||
inviteRevoke: "全ての招待コードを失効する"
|
||||
inviteRevokeConfirm: "本当に全ての招待コードを失効させますか?"
|
||||
|
||||
_group:
|
||||
leader: "グループオーナー"
|
||||
|
|
20
src/server/api/endpoints/admin/invite-revoke.ts
Normal file
20
src/server/api/endpoints/admin/invite-revoke.ts
Normal file
|
@ -0,0 +1,20 @@
|
|||
import define from '../../define';
|
||||
import { RegistrationTickets } from '../../../../models';
|
||||
|
||||
export const meta = {
|
||||
desc: {
|
||||
'ja-JP': '招待コードを失効します。'
|
||||
},
|
||||
|
||||
tags: ['admin'],
|
||||
|
||||
requireCredential: true as const,
|
||||
requireModerator: true,
|
||||
|
||||
params: {}
|
||||
};
|
||||
|
||||
export default define(meta, async () => {
|
||||
await RegistrationTickets.delete({
|
||||
});
|
||||
});
|
Loading…
Reference in a new issue