mirror of
https://github.com/tale/headplane.git
synced 2026-08-14 23:43:13 +00:00
fix: open file in a+ to avoid read issues
This commit is contained in:
@@ -202,7 +202,7 @@ async function loadUserFile(path: string) {
|
||||
const realPath = resolve(path);
|
||||
|
||||
try {
|
||||
const handle = await open(realPath, 'r+');
|
||||
const handle = await open(realPath, 'a+');
|
||||
log.info('config', 'Using user database file at %s', realPath);
|
||||
await handle.close();
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user