store app owner ID even when worker is deployed from root ctx (#3301)

This commit is contained in:
Neal Shah
2026-06-24 15:21:48 -04:00
committed by GitHub
parent 7f05a707bd
commit 2974a8b01c
+2 -1
View File
@@ -165,7 +165,8 @@ export class WorkerDriver extends PuterDriver {
{ legacyCode: 'forbidden' },
);
}
appOwnerId = actor.app?.id;
const ownerApp = await this.stores.app.getByUid(appId);
appOwnerId = ownerApp?.id ?? actor.app?.id;
authorization = await this.services.auth.createWorkerAppToken(
actor,
appId,