Skip to content

Class constructor Token cannot be invoked without 'new' after upgrading from 0.33.0 to 0.35.0 #544

@cwirz

Description

@cwirz

When i insert a new object im getting the error message: Class constructor Token cannot be invoked without 'new'

Token.insert({ data: { token: parsed.jwt, } })

export default class Token extends Model {
  static entity = 'tokens'
  static fields () {
    return {
      token: this.string(null),
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    releasedThe issue was implemented and it is released publicly

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions