fix
This commit is contained in:
@@ -41,9 +41,6 @@ func (uc *SettingsUsecase) PrepareAPIToken(ctx context.Context, userID, authorit
|
||||
if days == -1 {
|
||||
duration = 100 * 365 * 24 * time.Hour
|
||||
}
|
||||
if duration <= 0 {
|
||||
return nil, 0, errors.New("有效天数必须大于0或为-1")
|
||||
}
|
||||
return user, duration, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user