Skip to content

Commit 0f2cb4c

Browse files
committed
Merge pull request #116 from matiu/bug/fix-update-script
bug/fix-update-script
2 parents fcbd1f6 + 1ce15f6 commit 0f2cb4c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/TransactionDb.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,8 @@ TransactionDb.prototype.migrateV02 = function(cb) {
706706
var v = data.value.split(':');
707707
dbScript.push({
708708
type: 'put',
709-
key: ADDR_PREFIX + k[1] + '-' + (END_OF_WORLD_TS - parseInt(v[1])) + '-' + k[3] + '-' + [4],
709+
key: ADDR_PREFIX + k[1] + '-' + (END_OF_WORLD_TS - parseInt(v[1]))
710+
+ '-' + k[2] + '-' + k[3],
710711
value: v[0],
711712
});
712713
if (c++>N) {

0 commit comments

Comments
 (0)