Skip to content

BUG: The Map type is not saved to a file #603

@borbiuk

Description

@borbiuk
const db = new JsonDB(
    new Config('db.json', true, true)
);

const map = new Map();
map.set('a', 1);
map.set('b', 2);
map.set('c', 3);

await db.push('pathToMap', map);

const beforeReload = await db.getData('/'); //OK but pathToMap in file is empty

await db.reload();

const afterReload = await db.getData('/'); //returns: { pathToMap: {} }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions