Name local database write permission explicitly
This commit is contained in:
@@ -13,7 +13,7 @@ import {
|
||||
|
||||
export async function loadManufacturerCatalogState(config, { manufacturerId, position = 1 }) {
|
||||
const refreshResults = [];
|
||||
if (config.database?.mode === "local" && config.database.allowWrites) {
|
||||
if (config.database?.mode === "local" && config.database.allowLocalWrites) {
|
||||
for (const sql of prepareManufacturerCatalogSqls({ manufacturerId })) {
|
||||
refreshResults.push(
|
||||
await executeEndpointWrite(config, sql, {
|
||||
|
||||
Reference in New Issue
Block a user