Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private initPublishDb = () => {
if (this.dbPublish === undefined) {
this.dbPublish = new JsonDB('publishDB', true, false);
}
};
private initDb = () => {
if (this.db === undefined) {
this.db = new JsonDB('productsDB', true, false);
}
};