Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

createBullBoard usage incorrectly documented #585

Closed
sbruinsje opened this issue Jun 16, 2023 · 1 comment
Closed

createBullBoard usage incorrectly documented #585

sbruinsje opened this issue Jun 16, 2023 · 1 comment

Comments

@sbruinsje
Copy link

In this section of the readme. The createBullBoard usage is incorrect:

createBullBoard(
  {
    queues: [new BullMQAdapter(queueMQ)],
  },
  serverAdapter,
  {
    uiConfig: {
      boardTitle: 'My BOARD',
      boardLogo: {path: 'https://cdn.my-domain.com/logo.png', width: '100px', height: 200},
      miscLinks: [{ text: 'Logout', url: '/logout' }],
    },
  }
);

The serverAdapter and the options should be inside of the same object as the queues property. Additionally, the options should be wrapped within an options property as I found out here.

So the correct usage seems to be:

  createBullBoard({
    queues: [...],
    serverAdapter: serverAdapter,
    options: {
      uiConfig: {
        boardTitle: '...',
      }
    }
  });

This is what is working for me, but it took me quite some time to figure out what was wrong since the readme incorrectly documents the usage.

@felixmosh
Copy link
Owner

Thanx for pointing this out, this was the old api... I'll change the readme asap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants