A decentralized music tracking and discovery platform built on AT Protocol 🎵

[api] order files by name

+6 -2
+3 -1
apps/api/src/xrpc/app/rocksky/dropbox/getFiles.ts
··· 1 1 import { HandlerAuth } from "@atproto/xrpc-server"; 2 2 import { Context } from "context"; 3 - import { and, eq } from "drizzle-orm"; 3 + import { and, asc, eq } from "drizzle-orm"; 4 4 import { alias } from "drizzle-orm/pg-core"; 5 5 import { Effect, pipe } from "effect"; 6 6 import { Server } from "lexicon"; ··· 64 64 eq(parentAlias.path, _.get(params, "at", "/Music")) 65 65 ) 66 66 ) 67 + .orderBy(asc(tables.dropboxDirectories.name)) 67 68 .execute(), 68 69 ctx.db 69 70 .select() ··· 83 84 eq(tables.dropboxDirectories.path, _.get(params, "at", "/Music")) 84 85 ) 85 86 ) 87 + .orderBy(asc(tables.dropboxPaths.name)) 86 88 .execute(), 87 89 ]); 88 90 },
+3 -1
apps/api/src/xrpc/app/rocksky/googledrive/getFiles.ts
··· 1 1 import { Context } from "context"; 2 - import { and, eq } from "drizzle-orm"; 2 + import { and, asc, eq } from "drizzle-orm"; 3 3 import { alias } from "drizzle-orm/pg-core"; 4 4 import { Effect, pipe } from "effect"; 5 5 import { Server } from "lexicon"; ··· 69 69 eq(parentAlias.path, _.get(params, "at", "/Music")) 70 70 ) 71 71 ) 72 + .orderBy(asc(tables.googleDriveDirectories.name)) 72 73 .execute(), 73 74 ctx.db 74 75 .select() ··· 97 98 ) 98 99 ) 99 100 ) 101 + .orderBy(asc(tables.googleDrivePaths.name)) 100 102 .execute(), 101 103 ]); 102 104 },