Update hash key to be consistently generated for snapshots

This commit is contained in:
Kristin Aoki
2021-08-02 16:22:33 -04:00
parent 20935e7860
commit 5f0968e348

View File

@@ -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',