tangled
alpha
login
or
join now
rocksky.app
/
rocksky
96
fork
atom
A decentralized music tracking and discovery platform built on AT Protocol 🎵
rocksky.app
spotify
atproto
lastfm
musicbrainz
scrobbling
listenbrainz
96
fork
atom
overview
issues
7
pulls
pipelines
[api] omit createdAt and updatedAt
tsiry-sandratraina.com
8 months ago
9b21ce5f
7ea0bb66
+10
-2
2 changed files
expand all
collapse all
unified
split
apps
api
src
xrpc
app
rocksky
dropbox
getFiles.ts
googledrive
getFiles.ts
+5
-1
apps/api/src/xrpc/app/rocksky/dropbox/getFiles.ts
···
6
6
import { Server } from "lexicon";
7
7
import { QueryParams } from "lexicon/types/app/rocksky/dropbox/getFiles";
8
8
import _ from "lodash";
9
9
+
import * as R from "ramda";
9
10
import tables from "schema";
10
11
11
12
export default function (server: Server, ctx: Context) {
···
112
113
113
114
const presentation = (data) => {
114
115
return Effect.sync(() => ({
115
115
-
parentDirectory: _.get(data, "0.0.parent", null),
116
116
+
parentDirectory: R.omit(
117
117
+
["createdAt", "updatedAt"],
118
118
+
_.get(data, "0.0.parent", null)
119
119
+
),
116
120
directories: data[0].map((item) => ({
117
121
id: item.dropbox_directories.id,
118
122
name: item.dropbox_directories.name,
+5
-1
apps/api/src/xrpc/app/rocksky/googledrive/getFiles.ts
···
5
5
import { Server } from "lexicon";
6
6
import { QueryParams } from "lexicon/types/app/rocksky/googledrive/getFiles";
7
7
import _ from "lodash";
8
8
+
import * as R from "ramda";
8
9
import tables from "schema";
9
10
10
11
export default function (server: Server, ctx: Context) {
···
123
124
124
125
const presentation = (data) => {
125
126
return Effect.sync(() => ({
126
126
-
parentDirectory: _.get(data, "0.0.parent", null),
127
127
+
parentDirectory: R.omit(
128
128
+
["createdAt", "updatedAt"],
129
129
+
_.get(data, "0.0.parent", null)
130
130
+
),
127
131
directories: data[0].map((item) => ({
128
132
id: item.google_drive_directories.id,
129
133
name: item.google_drive_directories.name,