@lacrous/omnicloud 0.2.10 → 0.2.11

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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/server/index.js +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lacrous/omnicloud",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "description": "SDK and core building blocks for OmniCloud — self-hosted cloud storage powered by your Telegram account.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -48,9 +48,9 @@
48
48
  "prisma": "^6.2.0"
49
49
  },
50
50
  "devDependencies": {
51
- "@omnicloud/core": "0.2.10",
52
- "@omnicloud/shared": "0.2.10",
53
- "@omnicloud/telegram": "0.2.10",
51
+ "@omnicloud/core": "0.2.11",
52
+ "@omnicloud/shared": "0.2.11",
53
+ "@omnicloud/telegram": "0.2.11",
54
54
  "@types/node": "^22.10.0",
55
55
  "esbuild": "0.25.12",
56
56
  "tsup": "^8.3.0",
package/server/index.js CHANGED
@@ -935,7 +935,9 @@ var ReconciliationApplier = class {
935
935
  const file = (await this.repos.files.listByUser(this.userId)).find(
936
936
  (candidate) => candidate.telegramMessageId === action.messageId
937
937
  );
938
- if (!file) return;
938
+ if (!file) {
939
+ throw new Error("No file of yours references this message, so there is nothing to detach");
940
+ }
939
941
  await this.repos.files.update(file.id, { deletedAt: /* @__PURE__ */ new Date(), trashBatchId: null });
940
942
  }
941
943
  async adopt(action) {
@@ -4970,7 +4972,7 @@ function encryptionCheck(configured) {
4970
4972
  }
4971
4973
 
4972
4974
  // ../../apps/api/src/routes/storage.ts
4973
- var VERSION = "0.2.10";
4975
+ var VERSION = "0.2.11";
4974
4976
  function registerStorageRoutes(app2, container2) {
4975
4977
  app2.get("/api/health", async () => {
4976
4978
  const database = await probeDatabase(container2);