Continue when encountering keys that aren't relevant

This commit is contained in:
André Duffeck
2025-06-05 15:24:00 +02:00
parent ac8b58233e
commit c9a704d446
@@ -79,6 +79,7 @@ func (a *ActivitylogService) migrateToV1(_ context.Context, kv nats.KeyValue) er
if err := json.Unmarshal(valBytes, &val); err != nil {
a.log.Error().Err(err).Str("key", key).Msg("migrateToV1: Value for key ss not a keyValueEnvelope. Skipping.")
skippedCount++
continue
}
// Unmarshal value into a list of strings