This commit is contained in:
@@ -73,9 +73,16 @@ func runSingleWorker(ctx context.Context, rdb *redis.Client, consumerID int, sc
|
||||
log.Error().Err(err).Msg("Failed to unmarshal payload")
|
||||
continue
|
||||
}
|
||||
storageKeys := make([]string, len(data))
|
||||
for i, item := range data {
|
||||
storageKeys[i] = item.StorageKey
|
||||
storageKeys := make([]string, 0, len(data))
|
||||
for _, item := range data {
|
||||
if item != nil && item.StorageKey != "" {
|
||||
storageKeys = append(storageKeys, item.StorageKey)
|
||||
}
|
||||
}
|
||||
if len(storageKeys) == 0 {
|
||||
log.Info().Str("worker", consumerName).Msg("No valid storage keys found in bulk delete payload")
|
||||
rdb.XAck(ctx, constants.StreamStorageName, constants.GroupStorageName, message.ID)
|
||||
continue
|
||||
}
|
||||
log.Info().
|
||||
Str("worker", consumerName).
|
||||
|
||||
@@ -2229,8 +2229,7 @@ const docTemplate = `{
|
||||
"history-api_internal_dtos_request.ChangePasswordDto": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"new_password",
|
||||
"old_password"
|
||||
"new_password"
|
||||
],
|
||||
"properties": {
|
||||
"new_password": {
|
||||
|
||||
@@ -2222,8 +2222,7 @@
|
||||
"history-api_internal_dtos_request.ChangePasswordDto": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"new_password",
|
||||
"old_password"
|
||||
"new_password"
|
||||
],
|
||||
"properties": {
|
||||
"new_password": {
|
||||
|
||||
@@ -12,7 +12,6 @@ definitions:
|
||||
type: string
|
||||
required:
|
||||
- new_password
|
||||
- old_password
|
||||
type: object
|
||||
history-api_internal_dtos_request.ChangeRoleDto:
|
||||
properties:
|
||||
|
||||
@@ -171,7 +171,6 @@ func (a *authService) Signin(ctx context.Context, dto *request.SignInDto) (*resp
|
||||
|
||||
}
|
||||
|
||||
|
||||
func (a *authService) Logout(ctx context.Context, userId string) error {
|
||||
pgID, err := convert.StringToUUID(userId)
|
||||
if err != nil {
|
||||
|
||||
@@ -42,8 +42,6 @@ func init() {
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
func isValidURL(s string) bool {
|
||||
u, err := url.ParseRequestURI(s)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user