chore: cleanup merge

This commit is contained in:
cv
2024-01-12 10:17:12 +01:00
parent 6d067f3d3a
commit e6bb52ad9c
2 changed files with 5 additions and 6 deletions
+4 -5
View File
@@ -74,6 +74,10 @@ export const externalsStartDirectory = isProduction ? getAppDataPath() : join(cu
//TODO: we only need one when they are all in the same folder
export const resolveExternalsDirectory = join(isProduction ? getAppDataPath() : currentDirectory, 'external');
// project files
export const lastLoadedProjectConfigPath = join(getAppDataPath(), 'config.json');
export const uploadsFolderPath = join(getAppDataPath(), 'uploads');
const getLastLoadedProject = () => {
try {
return JSON.parse(fs.readFileSync(lastLoadedProjectConfigPath, 'utf8')).lastLoadedProject;
@@ -91,11 +95,6 @@ const configDbDirectory = lastLoadedProject ? 'uploads' : config.database.direct
// path to public db
export const resolveDbDirectory = join(testDbStartDirectory, isTest ? config.database.testdb : configDbDirectory);
export const resolveDbPath = join(resolveDbDirectory, lastLoadedProject ? lastLoadedProject : config.database.filename);
// project files
export const lastLoadedProjectConfigPath = join(getAppDataPath(), 'config.json');
export const uploadsFolderPath = join(getAppDataPath(), 'uploads');
export const pathToStartDb = isTest
? join(currentDirectory, '../', config.database.testdb, config.database.filename)
: join(currentDirectory, '/preloaded-db/', config.database.filename);
+1 -1
View File
@@ -71,7 +71,7 @@ export function cellRequestFromEvent(
});
} else if (typeof event[key] === 'number') {
returnRows.push({
userEnteredValue: { stringValue: millisToString(event[key], true) },
userEnteredValue: { stringValue: millisToString(event[key]) },
});
} else if (typeof event[key] === 'string') {
returnRows.push({