@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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+RrB,CAAC"}
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"}
@@ -197,7 +197,15 @@ export const authRouter = createTRPCRouter({
197
197
  id: true,
198
198
  email: true,
199
199
  role: true,
200
- schoolId: true,
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studious-lms/server",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "Backend server for Studious application",
5
5
  "main": "dist/exportType.js",
6
6
  "types": "dist/exportType.d.ts",
@@ -238,7 +238,15 @@ export const authRouter = createTRPCRouter({
238
238
  id: true,
239
239
  email: true,
240
240
  role: true,
241
- schoolId: true,
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