Error updating pivot table

Hi.

I’m getting this error when trying to update a BelongsToMany relationship:

message: “fakeModel._setUpdatedAt is not a function”
file: “node_modules/@adonisjs/lucid/src/Lucid/QueryBuilder/index.js”,…}
line: " fakeModel._setUpdatedAt(valuesCopy)"

User.js

  company(){
    return this.belongsToMany(
      'App/Models/Company',
      'user_id',
      'company_id'
    )
    .pivotTable('users_companies')
    .withTimestamps()
    .withPivot(['active'])
  }

update code:

          await user
                .company()
                .pivotQuery()
                .where('active',1)
                .update({active:0})

seems like a bug, please confirm to post it.

B/R.

Yup, feel free to post