Feat: Revoke Invitation Codes

This commit is contained in:
atsu1125 2023-01-03 23:36:33 +09:00 committed by NoriDev
parent a2f2f0268a
commit 0491042d95
3 changed files with 24 additions and 0 deletions

View file

@ -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"

View file

@ -1115,6 +1115,8 @@ thisFlashRequiresTheFollowingPermissions: "このPlayは以下の権限を要求
doYouWantToAllowThisPlayToAccessYourAccount: "このPlayによるアカウントへのアクセスを許可しますか"
translateProfile: "プロフィールを翻訳する"
enableAbsoluteTime: "絶対時刻表記を使用する"
inviteRevoke: "全ての招待コードを失効する"
inviteRevokeConfirm: "本当に全ての招待コードを失効させますか?"
_group:
leader: "グループオーナー"

View 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({
});
});