senecajs / seneca-entity

Entity plugin for seneca
MIT License
13 stars 15 forks source link

reproduce the crash #80

Closed lilsweetcaligula closed 1 year ago

lilsweetcaligula commented 1 year ago

The test fails with:

    TypeError: Cannot read properties of undefined (reading 'sys__entity')

      228 |
      229 |       let transaction: Transaction =
    > 230 |         state.instance.fixedmeta.custom.sys__entity.transaction[state.canonstr]
          |                                         ^
      231 |
      232 |       if (null == transaction) {
      233 |         throw new Error('Transaction does not exist' +

      at Function.entityAPI.commit (src/entity.ts:230:41)
      at test/transaction.test.js:302:30