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

Uncaught BSONError: cyclic dependency detected #379

Open
oq-x opened this issue Sep 12, 2022 · 1 comment
Open

Uncaught BSONError: cyclic dependency detected #379

oq-x opened this issue Sep 12, 2022 · 1 comment

Comments

@oq-x
Copy link

oq-x commented Sep 12, 2022

Hey I am trying to use the package but I am getting this error.
I am unsure how why and where this is coming from so here is some code I used with the package:

const panel = await panels.findOne({
      pId,
      guildId: interaction.guildId!.toString(),
    });
await panels.deleteOne({ pId, guildId: interaction.guildId?.toString() });
await panels.replaceOne({ pId: { $eq: panel.pId } }, panel);
const panels = await database.collection<Panel>("panels").countDocuments();
await panels.updateOne(panel, { $push: { blacklisted: { $each: [user] } } });
await panels.updateOne({ pId: { $eq: panel.pId } }, {
    $pull: { blacklisted: user },
  });
@lucsoft
Copy link
Collaborator

lucsoft commented Feb 1, 2023

Can you still reproduce it from the current main branch?

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