@omen.foundation/node-microservice-runtime 0.1.82 → 0.1.83

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omen.foundation/node-microservice-runtime",
3
- "version": "0.1.82",
3
+ "version": "0.1.83",
4
4
  "description": "Beamable microservice runtime for Node.js/TypeScript services.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1091,10 +1091,10 @@ async function main() {
1091
1091
  }
1092
1092
  }
1093
1093
 
1094
- // Try using realm PID for registry URL (backend might check using realm PID scope)
1095
- // If resolvedGamePid differs from pid, the backend might be checking with the wrong scope
1096
- const registryUrl = await getRegistryUrl(apiHost, token, cid, pid);
1097
- const uniqueName = md5Hex(`${cid}_${pid}_${serviceId}`).substring(0, 30);
1094
+ // Use resolvedGamePid for registry URL and uniqueName - backend checks using game PID scope
1095
+ // The pid variable might be a realm PID, but the backend expects game PID for registry operations
1096
+ const registryUrl = await getRegistryUrl(apiHost, token, cid, resolvedGamePid);
1097
+ const uniqueName = md5Hex(`${cid}_${resolvedGamePid}_${serviceId}`).substring(0, 30);
1098
1098
  if (process.env.BEAMO_DEBUG === '1' || process.env.BEAMO_NODE_DEBUG === '1') {
1099
1099
  console.error(`[beamo-node] Registry URL: ${registryUrl}`);
1100
1100
  console.error(`[beamo-node] Unique name: ${uniqueName}`);