Skip to content

Commit a53eff1

Browse files
committed
mirage: Fix missing crate-owner-invitation creation in add owner endpoint
1 parent 4ba746b commit a53eff1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mirage/route-handlers/crates.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,8 @@ export function register(server) {
247247
return { errors: [{ detail: `could not find user with login \`${ownerId}\`` }] };
248248
}
249249

250+
schema.crateOwnerInvitations.create({ crate, inviter: user, invitee });
251+
250252
return { ok: true };
251253
});
252254

0 commit comments

Comments
 (0)