Skip to content

Commit 4af5634

Browse files
committed
fix(tiphereth): fix user capacity
1 parent 895d320 commit 4af5634

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • app/sephirah/internal/biz/biztiphereth

app/sephirah/internal/biz/biztiphereth/user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ func (t *Tiphereth) checkCapacity(ctx context.Context) *errors.Error {
214214
if err != nil {
215215
return pb.ErrorErrorReasonForbidden("server have invalid setting")
216216
}
217-
count, err := t.userCountCache.Get(ctx)
217+
count, err := t.userCountCache.GetWithFallBack(ctx, nil)
218218
if err != nil {
219219
return pb.ErrorErrorReasonUnspecified("%s", err)
220220
}

0 commit comments

Comments
 (0)