mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-10-21 23:11:39 +02:00
fix: repair private repository access from the edit page (#892)
* fix: repair private repository access from the edit page * fix: respect App rollout and reload renamed sources after repair * fix: gate access repair by status and update response tests
This commit is contained in:
1 parent
4a06aa9888
commit
1d326e7c32
9 files changed
+180
-23
No files matched your search
@@ -265,7 +265,7 @@ router.post("/connections/migrate", async (req, res) => {
|
||||
const result = isRepo ? await RepositoryModel.updateOne(filter, change) : await PullRequestModel.updateOne(filter, change);
|
||||
if (!result.modifiedCount) throw appError("connection_changed", 409);
|
||||
await resetOwnerAccessAlerts(user.id, { kind: isRepo ? "repository" : "pull-request", id: String(model._id) });
|
||||
res.json({ connection });
|
||||
res.json({ connection, fullName: selected.fullName || name });
|
||||
} catch (error) { handleError(error, res, req); }
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user