feat(backend): migrate freelancer and portal runtimes
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import "server-only";
|
||||
|
||||
import { domainActorFromSession } from "../auth/domain-actor";
|
||||
import { requireClientUser } from "../auth/session";
|
||||
import { getDomainService } from "../services/runtime";
|
||||
|
||||
export async function requirePortalBackend() {
|
||||
const context = await requireClientUser();
|
||||
|
||||
return {
|
||||
context,
|
||||
actor: domainActorFromSession(context),
|
||||
service: getDomainService(),
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user