@studious-lms/server 1.1.4 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/routers/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAwBxB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/routers/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAwBxB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuSrB,CAAC"}
|
package/dist/routers/auth.js
CHANGED
|
@@ -197,7 +197,15 @@ export const authRouter = createTRPCRouter({
|
|
|
197
197
|
id: true,
|
|
198
198
|
email: true,
|
|
199
199
|
role: true,
|
|
200
|
-
|
|
200
|
+
profile: {
|
|
201
|
+
select: {
|
|
202
|
+
displayName: true,
|
|
203
|
+
bio: true,
|
|
204
|
+
location: true,
|
|
205
|
+
website: true,
|
|
206
|
+
profilePicture: true,
|
|
207
|
+
},
|
|
208
|
+
},
|
|
201
209
|
},
|
|
202
210
|
});
|
|
203
211
|
if (!user) {
|
package/package.json
CHANGED
package/src/routers/auth.ts
CHANGED
|
@@ -238,7 +238,15 @@ export const authRouter = createTRPCRouter({
|
|
|
238
238
|
id: true,
|
|
239
239
|
email: true,
|
|
240
240
|
role: true,
|
|
241
|
-
|
|
241
|
+
profile: {
|
|
242
|
+
select: {
|
|
243
|
+
displayName: true,
|
|
244
|
+
bio: true,
|
|
245
|
+
location: true,
|
|
246
|
+
website: true,
|
|
247
|
+
profilePicture: true,
|
|
248
|
+
},
|
|
249
|
+
},
|
|
242
250
|
},
|
|
243
251
|
});
|
|
244
252
|
|