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")
|
log.Error().Err(err).Msg("Failed to unmarshal payload")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
storageKeys := make([]string, len(data))
|
storageKeys := make([]string, 0, len(data))
|
||||||
for i, item := range data {
|
for _, item := range data {
|
||||||
storageKeys[i] = item.StorageKey
|
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().
|
log.Info().
|
||||||
Str("worker", consumerName).
|
Str("worker", consumerName).
|
||||||
|
|||||||
@@ -2229,8 +2229,7 @@ const docTemplate = `{
|
|||||||
"history-api_internal_dtos_request.ChangePasswordDto": {
|
"history-api_internal_dtos_request.ChangePasswordDto": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
"required": [
|
||||||
"new_password",
|
"new_password"
|
||||||
"old_password"
|
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"new_password": {
|
"new_password": {
|
||||||
|
|||||||
@@ -2222,8 +2222,7 @@
|
|||||||
"history-api_internal_dtos_request.ChangePasswordDto": {
|
"history-api_internal_dtos_request.ChangePasswordDto": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
"required": [
|
||||||
"new_password",
|
"new_password"
|
||||||
"old_password"
|
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"new_password": {
|
"new_password": {
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ definitions:
|
|||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
- new_password
|
- new_password
|
||||||
- old_password
|
|
||||||
type: object
|
type: object
|
||||||
history-api_internal_dtos_request.ChangeRoleDto:
|
history-api_internal_dtos_request.ChangeRoleDto:
|
||||||
properties:
|
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 {
|
func (a *authService) Logout(ctx context.Context, userId string) error {
|
||||||
pgID, err := convert.StringToUUID(userId)
|
pgID, err := convert.StringToUUID(userId)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@@ -42,8 +42,6 @@ func init() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
func isValidURL(s string) bool {
|
func isValidURL(s string) bool {
|
||||||
u, err := url.ParseRequestURI(s)
|
u, err := url.ParseRequestURI(s)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user