diff options
| author | かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> | 2024-10-25 15:09:37 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-25 15:09:37 +0900 |
| commit | eeea4ec00b4ed1aeabee85d2761699765f9b2af9 (patch) | |
| tree | 3f14a43979a9add54d361085958cfb6be49fa2b2 /packages | |
| parent | fix(frontend): 管理画面のリンク切れを修正 (#14831) (diff) | |
| download | sharkey-eeea4ec00b4ed1aeabee85d2761699765f9b2af9.tar.gz sharkey-eeea4ec00b4ed1aeabee85d2761699765f9b2af9.tar.bz2 sharkey-eeea4ec00b4ed1aeabee85d2761699765f9b2af9.zip | |
fix(backend): 招待コード発行可能残り数算出に使用すべきロールポリシーの値が違うのを修正 (#14834)
* fix: should use invite limit cycle to calculate invite/limit
* Update Changelog
* Update changelog
---------
Co-authored-by: Lhc_fl <lhcfl@outlook.com>
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/backend/src/server/api/endpoints/invite/limit.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/src/server/api/endpoints/invite/limit.ts b/packages/backend/src/server/api/endpoints/invite/limit.ts index 2786bd98d5..2ffd41ae28 100644 --- a/packages/backend/src/server/api/endpoints/invite/limit.ts +++ b/packages/backend/src/server/api/endpoints/invite/limit.ts @@ -49,7 +49,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint- const policies = await this.roleService.getUserPolicies(me.id); const count = policies.inviteLimit ? await this.registrationTicketsRepository.countBy({ - id: MoreThan(this.idService.gen(Date.now() - (policies.inviteExpirationTime * 60 * 1000))), + id: MoreThan(this.idService.gen(Date.now() - (policies.inviteLimitCycle * 60 * 1000))), createdById: me.id, }) : null; |