Update hash key to be consistently generated for snapshots
This commit is contained in:
@@ -23,8 +23,11 @@ Factory.define('block')
|
||||
return blockId;
|
||||
})
|
||||
.attr(
|
||||
'hash_key', ['hash_key'],
|
||||
() => (Math.random().toString(36).substring(2, 15)),
|
||||
'hash_key', ['block_id'],
|
||||
(blockId) => {
|
||||
const len = blockId.length;
|
||||
return blockId.substring(23, len);
|
||||
},
|
||||
)
|
||||
.attr(
|
||||
'id',
|
||||
|
||||
Reference in New Issue
Block a user