Let users set 12/24 hour time format (#2002)

This commit is contained in:
Bailey Pumfleet authored and GitHub committed 2022-02-28 16:24:47 +00:00
1 parent 2559873b2c
commit 7826a34b00
8 files changed
+53 -5

No files matched your search

+1
View File
@@ -66,6 +66,7 @@ async function getUserFromSession({
completedOnboarding: true,
destinationCalendar: true,
locale: true,
timeFormat: true,
},
});
+2
View File
@@ -75,6 +75,7 @@ const loggedInViewerRouter = createProtectedRouter()
endTime: user.endTime,
bufferTime: user.bufferTime,
locale: user.locale,
timeFormat: user.timeFormat,
avatar: user.avatar,
createdDate: user.createdDate,
completedOnboarding: user.completedOnboarding,
@@ -612,6 +613,7 @@ const loggedInViewerRouter = createProtectedRouter()
theme: z.string().optional().nullable(),
completedOnboarding: z.boolean().optional(),
locale: z.string().optional(),
timeFormat: z.number().optional(),
}),
async resolve({ input, ctx }) {
const { user, prisma } = ctx;