streamby-core 0.29.11 → 0.29.12

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.
@@ -61,8 +61,11 @@ function storageRouter(config) {
61
61
  function connFilter(projectId, connId, project, extra) {
62
62
  const conn = findStorageConn(project, connId);
63
63
  const isBuiltin = conn?.source === 'builtin';
64
+ // Builtin files may be stamped one of two ways depending on when they were uploaded:
65
+ // legacy docs (pre-per-row-ids) used the builtin's config id (e.g. 'builtin') or have no
66
+ // storageConnectionId at all; current uploads use the row's own generated id (connId).
64
67
  const connMatch = isBuiltin
65
- ? { $or: [{ storageConnectionId: connId }, { storageConnectionId: { $exists: false } }] }
68
+ ? { $or: [{ storageConnectionId: connId }, { storageConnectionId: conn.integrationId }, { storageConnectionId: { $exists: false } }] }
66
69
  : { storageConnectionId: connId };
67
70
  return { projectId, ...connMatch, ...(extra ?? {}) };
68
71
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "streamby-core",
3
- "version": "0.29.11",
3
+ "version": "0.29.12",
4
4
  "description": "StreamBy middleware framework for media storage management",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",