diff --git a/Tzkt.Sync/Services/TokenMetadata/TokenMetadata.cs b/Tzkt.Sync/Services/TokenMetadata/TokenMetadata.cs index fc4949f51..65038358e 100644 --- a/Tzkt.Sync/Services/TokenMetadata/TokenMetadata.cs +++ b/Tzkt.Sync/Services/TokenMetadata/TokenMetadata.cs @@ -386,7 +386,7 @@ async Task SaveTokenMetadata(List items) { if (any) sql.AppendLine(","); else any = true; - param.Add($"@p{j}", JsonSerializer.Serialize(item.Metadata, options)); + param.Add($"@p{j}", JsonSerializer.Serialize(item.Metadata, options).Replace("\u0000", string.Empty)); sql.Append($"({contractId}, '{item.TokenId}', @p{j}::jsonb)"); } }