Skip to content

Regroup should return the work output #36

@Eomm

Description

@Eomm

teamwork/lib/index.js

Lines 66 to 71 in baadcc8

async regroup(options) {
await this.work;
this._init(options);
}

As titled, the regroup API should return the work output because:

  • while you can collect the attend output like this:
  • the regroup does not return the work's results
const team = new Teamwork.Team({ meetings: 2 });


ee.on('foo', ()=>{
  team.attend('foo')
})

const out = await team.work
console.log(out) // prints ['foo', 'foo']

It is not possibile to do the same with regroup:

const out = await team.regroup()
console.log(out) // undefined

Do you agree?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug or defect

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions