lib/immutable-core-task-instance.js
/**
 * @function reload
 *
 * reset instance data to current record instance
 *
 * @returns {Promise<undefined>}
 */
@function reload
reset instance data to current record instance

@returns {Promise}
@function reload reset instance data to current record instance @returns { Promise }
async function reload () {
    var record = await this.task.instanceModel().query({
        current: true,
        one: true,
        where: {id: this.record.id},
    })
    this.initRecord({record: record})
}
async function reload ( ) { var record = await this . task . instanceModel ( ) . query ( { current : true , one : true , where : { id : this . record . id } , } ) this . initRecord ( { record : record } ) }
@function reload
 reset instance data to current record instance
@function reload reset instance data to current record instance
// get current instance of record // re-initialize instance from record