mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-11 05:11:49 +01:00
Fix company skill rebase integration
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
4c4a0f3067
commit
565a2bf59e
2 files changed
+2
-2
No files matched your search
@@ -1259,7 +1259,7 @@ describe("company skill mutation permissions", () => {
|
||||
expect(res.status, JSON.stringify(res.body)).toBe(201);
|
||||
expect(mockReflectionCoachMutationGate.assertConsented).toHaveBeenCalledWith({
|
||||
companyId: "company-1",
|
||||
actorAgentId: "agent-1",
|
||||
actorAgentId: "55555555-5555-4555-8555-555555555555",
|
||||
actorRunId: "run-1",
|
||||
targetKeys: ["skill-import:https://github.com/vercel-labs/agent-browser"],
|
||||
});
|
||||
|
||||
@@ -120,7 +120,7 @@ export function companySkillRoutes(db: Db) {
|
||||
return targetKeys;
|
||||
}
|
||||
|
||||
async function assertCanMutateCompanySkills(req: Request, companyId: string, targetKeys: string[]) {
|
||||
async function assertCanMutateCompanySkills(req: Request, companyId: string, targetKeys: string[] = []) {
|
||||
assertCompanyAccess(req, companyId);
|
||||
const decision = await access.decide({
|
||||
actor: req.actor,
|
||||
|
||||
Reference in new issue
Block a user