Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions api/src/resolver_repo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,15 @@ async function updateUserRepoData({ userId, repoId }) {
if (!repoData) {
await prisma.userRepoData.create({
data: {
id: await nanoid(),
user: { connect: { id: userId } },
repo: { connect: { id: repoId } },
},
});
} else {
await prisma.userRepoData.update({
await prisma.userRepoData.updateMany({
where: {
id: repoData.id,
user: { id: userId },
repo: { id: repoId },
},
data: {
dummyCount: { increment: 1 },
Expand Down
4 changes: 2 additions & 2 deletions ui/src/pages/repos.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ function MyRepos() {
return <CircularProgress />;
}
if (error) {
return null;
return <Box>ERROR: {error.message}</Box>;
}
const repos = data.myRepos.slice();
return (
Expand Down Expand Up @@ -339,7 +339,7 @@ function SharedWithMe() {
return <CircularProgress />;
}
if (error) {
return null;
return <Box>ERROR: {error.message}</Box>;
}
const repos = data.myCollabRepos.slice();
return (
Expand Down