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

[api] chains effects

+2 -3
+1 -2
apps/api/src/xrpc/app/rocksky/dropbox/getFiles.ts
··· 11 11 pipe( 12 12 { params, ctx, did: auth.credentials?.did }, 13 13 retrieve, 14 - presentation, 14 + Effect.flatMap(presentation), 15 15 Effect.retry({ times: 3 }), 16 16 Effect.timeout("10 seconds"), 17 17 Effect.catchAll((err) => { ··· 65 65 }; 66 66 67 67 const presentation = (data) => { 68 - console.log(data); 69 68 return Effect.sync(() => ({ 70 69 files: data.map((item) => ({ 71 70 id: item.dropbox_directories.id,
+1 -1
apps/api/src/xrpc/app/rocksky/googledrive/getFiles.ts
··· 10 10 pipe( 11 11 { params, ctx, did: auth.credentials?.did }, 12 12 retrieve, 13 - presentation, 13 + Effect.flatMap(presentation), 14 14 Effect.retry({ times: 3 }), 15 15 Effect.timeout("10 seconds"), 16 16 Effect.catchAll((err) => {