rhythia-api 207.0.0 → 208.0.0

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.
@@ -228,30 +228,14 @@ export async function handler(
228
228
  `
229
229
  id,
230
230
  awarded_sp,
231
- created_at,
232
- misses,
233
- mods,
234
- passed,
235
- songId,
236
- speed,
237
- spin,
238
231
  userId,
239
- beatmapHash,
240
232
  additional_data,
241
- beatmaps (
242
- difficulty,
243
- noteCount,
244
- title,
245
- starRating,
246
- image,
247
- imageLarge
248
- ),
249
233
  profiles (
250
- username,
251
- avatar_url
234
+ username
252
235
  )
253
236
  `
254
237
  )
238
+ .eq("passed", true)
255
239
  .order("created_at", { ascending: false })
256
240
  .range(offset, offset + params.limit - 1);
257
241
 
@@ -268,31 +252,8 @@ export async function handler(
268
252
  const transformed: any = {
269
253
  id: score.id,
270
254
  awarded_sp: score.awarded_sp,
271
- created_at: score.created_at,
272
- misses: score.misses,
273
- mods: score.mods,
274
- passed: score.passed,
275
- songId: score.songId,
276
- speed: score.speed,
277
- spin: score.spin,
278
255
  userId: score.userId,
279
- beatmapHash: score.beatmapHash,
280
- beatmap: score.beatmaps
281
- ? {
282
- difficulty: score.beatmaps.difficulty,
283
- noteCount: score.beatmaps.noteCount,
284
- title: score.beatmaps.title,
285
- starRating: score.beatmaps.starRating,
286
- image: score.beatmaps.image,
287
- imageLarge: score.beatmaps.imageLarge,
288
- }
289
- : null,
290
- profile: score.profiles
291
- ? {
292
- username: score.profiles.username,
293
- avatar_url: score.profiles.avatar_url,
294
- }
295
- : null,
256
+ username: score.profiles?.username || null,
296
257
  };
297
258
 
298
259
  if (params.includeAdditionalData) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rhythia-api",
3
- "version": "207.0.0",
3
+ "version": "208.0.0",
4
4
  "main": "index.ts",
5
5
  "author": "online-contributors-cunev",
6
6
  "scripts": {
@@ -1,8 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Bash(yarn update)"
5
- ],
6
- "deny": []
7
- }
8
- }