@naisys/erp 3.0.0-beta.13 → 3.0.0-beta.15

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.
@@ -20,7 +20,7 @@ export async function uploadAttachment(fileBuffer, filename, uploadedById, field
20
20
  }
21
21
  const fileHash = createHash("sha256").update(fileBuffer).digest("hex");
22
22
  // Write to temp, then move to content-addressable path
23
- const tmpDir = join(attachmentsDir(), "tmp");
23
+ const tmpDir = join(process.env.NAISYS_FOLDER || "", "tmp", "erp", "attachments");
24
24
  mkdirSync(tmpDir, { recursive: true });
25
25
  const tmpPath = join(tmpDir, `${Date.now()}_${uploadedById}_${Math.random().toString(36).slice(2)}`);
26
26
  const ws = createWriteStream(tmpPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naisys/erp",
3
- "version": "3.0.0-beta.13",
3
+ "version": "3.0.0-beta.15",
4
4
  "description": "NAISYS ERP - Web UI for AI-driven order and work management",
5
5
  "type": "module",
6
6
  "main": "dist/erpServer.js",
@@ -45,11 +45,11 @@
45
45
  "@fastify/rate-limit": "^10.3.0",
46
46
  "@fastify/static": "^9.0.0",
47
47
  "@fastify/swagger": "^9.7.0",
48
- "@naisys/erp-shared": "3.0.0-beta.13",
49
- "@naisys/common": "3.0.0-beta.13",
50
- "@naisys/common-node": "3.0.0-beta.13",
51
- "@naisys/hub-database": "3.0.0-beta.13",
52
- "@naisys/supervisor-database": "3.0.0-beta.13",
48
+ "@naisys/erp-shared": "3.0.0-beta.15",
49
+ "@naisys/common": "3.0.0-beta.15",
50
+ "@naisys/common-node": "3.0.0-beta.15",
51
+ "@naisys/hub-database": "3.0.0-beta.15",
52
+ "@naisys/supervisor-database": "3.0.0-beta.15",
53
53
  "@prisma/adapter-better-sqlite3": "^7.5.0",
54
54
  "@prisma/client": "^7.5.0",
55
55
  "@scalar/fastify-api-reference": "^1.48.7",