powerhouse-inc / document-drive

GNU Affero General Public License v3.0
1 stars 0 forks source link

add new config document drive server config property to handle old drives #265

Open gpuente opened 3 weeks ago

gpuente commented 3 weeks ago

Description:

this task requires: https://github.com/powerhouse-inc/document-drive/issues/263

add a resetDrives or similar property to DocumentDriveServer config to handle what happens with old drives when default drives changed (from connect env) (remove or keep)

export const BrowserDocumentDriveServer = new DocumentDriveServer(
    documentModels,
    new BrowserStorage(connectConfig.routerBasename),
    new InMemoryCache(),
    new BaseQueueManager(1, 10),
    {
        resetDrives: boolean, // handles what happens with old drives
        ...
    },
);