Skip to content

[BUG] MONGODB_DATABASE_NAME variable not fully honored #86

@DodoLeDev

Description

@DodoLeDev

Hello!
I am trying to self-host Notesnook on a specific setup (restricted MongoDB with naming conventions for database, among other things), and I faced a problem:

Even if I change the variable MONGODB_DATABASE_NAME in the docker-compose.yml file, Notesnook still tries to write in a "notesnook" database:

{"s":"I",  "c":"ACCESS", "msg":"Checking authorization failed","attr":{"error":{"code":13,"codeName":"Unauthorized","errmsg":"not authorized on notesnook to execute command { find: \"monographs\", filter: { ItemId: \"version\" }, limit: 1, $db: \"notesnook\" }"}}}

The error seems to come from here, where the database name is literally hardcoded.

And BTW, thanks for this amazing piece of software!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions