offgrid-ai 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/profiles.mjs +1 -1
package/package.json
CHANGED
package/src/profiles.mjs
CHANGED
|
@@ -62,7 +62,7 @@ export async function saveProfile(profile) {
|
|
|
62
62
|
const dir = profileDir(id);
|
|
63
63
|
await mkdir(dir, { recursive: true });
|
|
64
64
|
const now = new Date().toISOString();
|
|
65
|
-
const existing = await
|
|
65
|
+
const existing = await readJson(profileJsonPath(id), null);
|
|
66
66
|
const saved = {
|
|
67
67
|
...profile,
|
|
68
68
|
id,
|