File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
packages/brubeck-migration-script/src Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ export class Migrator {
50
50
if ( ! ( await this . registryFromMigrator . exists ( streamid ) ) ) {
51
51
try {
52
52
this . debug ( 'creating stream ' + streamid )
53
- const transaction = await this . registryFromMigrator . populateTransaction . trustedSetStreamMetadata ( streamid , ' metadata' )
53
+ const transaction = await this . registryFromMigrator . populateTransaction . trustedSetStreamMetadata ( streamid , streams [ streamid ] . metadata )
54
54
await this . sendTransaction ( transaction )
55
55
} catch ( e ) {
56
56
this . debug ( 'ERROR creating stream: ' + e )
Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ const compareAndMigrate = async () => {
45
45
const streams : any = { }
46
46
results . forEach ( ( queryResultLine : any ) => {
47
47
const metadata = JSON . stringify ( {
48
- description : queryResultLine . description ,
49
- partitions : queryResultLine . partitions ,
48
+ description : queryResultLine . description || '' ,
49
+ partitions : queryResultLine . partitions || 1 ,
50
50
inactivityThresholdHours : queryResultLine . inactivity_threshold_hours
51
51
} )
52
52
if ( ethers . utils . isAddress ( queryResultLine . username ) ) {
You can’t perform that action at this time.
0 commit comments