Reduce Payload for Event-Types[Avoid 500] (#2627)

Co-authored-by: sean-brydon <[email protected]>
This commit is contained in:
Hariom Balharaandsean-brydon authored and GitHub committed 2022-04-27 11:08:13 +00:00
1 parent 34d3aac4b0
commit cf346f6aa3
4 files changed
+84 -51

No files matched your search

-4
View File
@@ -137,7 +137,6 @@ const loggedInViewerRouter = createProtectedRouter()
select: {
id: true,
username: true,
avatar: true,
name: true,
},
},
@@ -154,7 +153,6 @@ const loggedInViewerRouter = createProtectedRouter()
startTime: true,
endTime: true,
bufferTime: true,
avatar: true,
plan: true,
teams: {
where: {
@@ -230,7 +228,6 @@ const loggedInViewerRouter = createProtectedRouter()
profile: {
slug: typeof user["username"];
name: typeof user["name"];
image: typeof user["avatar"];
};
metadata: {
membershipCount: number;
@@ -255,7 +252,6 @@ const loggedInViewerRouter = createProtectedRouter()
profile: {
slug: user.username,
name: user.name,
image: user.avatar,
},
eventTypes: _.orderBy(mergedEventTypes, ["position", "id"], ["desc", "asc"]),
metadata: {