tangled
alpha
login
or
join now
t1c.dev
/
rocksky
forked from
rocksky.app/rocksky
2
fork
atom
A decentralized music tracking and discovery platform built on AT Protocol 🎵
2
fork
atom
overview
issues
pulls
pipelines
[api] trim directory path
tsiry-sandratraina.com
8 months ago
3adf3300
c07254fe
+13
-4
2 changed files
expand all
collapse all
unified
split
apps
api
src
xrpc
app
rocksky
dropbox
getFiles.ts
googledrive
getFiles.ts
+8
-2
apps/api/src/xrpc/app/rocksky/dropbox/getFiles.ts
···
61
.where(
62
and(
63
eq(tables.users.did, did),
64
-
eq(parentAlias.path, _.get(params, "at", "/Music"))
0
0
0
65
)
66
)
67
.orderBy(asc(tables.dropboxDirectories.name))
···
81
.where(
82
and(
83
eq(tables.users.did, did),
84
-
eq(tables.dropboxDirectories.path, _.get(params, "at", "/Music"))
0
0
0
85
)
86
)
87
.orderBy(asc(tables.dropboxPaths.name))
···
61
.where(
62
and(
63
eq(tables.users.did, did),
64
+
eq(
65
+
parentAlias.path,
66
+
_.get(params, "at", "/Music").replace(/\/$/, "").trim()
67
+
)
68
)
69
)
70
.orderBy(asc(tables.dropboxDirectories.name))
···
84
.where(
85
and(
86
eq(tables.users.did, did),
87
+
eq(
88
+
tables.dropboxDirectories.path,
89
+
_.get(params, "at", "/Music").replace(/\/$/, "").trim()
90
+
)
91
)
92
)
93
.orderBy(asc(tables.dropboxPaths.name))
+5
-2
apps/api/src/xrpc/app/rocksky/googledrive/getFiles.ts
···
66
.where(
67
and(
68
eq(tables.users.did, did),
69
-
eq(parentAlias.path, _.get(params, "at", "/Music"))
0
0
0
70
)
71
)
72
.orderBy(asc(tables.googleDriveDirectories.name))
···
94
eq(tables.users.did, did),
95
eq(
96
tables.googleDriveDirectories.path,
97
-
_.get(params, "at", "/Music")
98
)
99
)
100
)
···
66
.where(
67
and(
68
eq(tables.users.did, did),
69
+
eq(
70
+
parentAlias.path,
71
+
_.get(params, "at", "/Music").replace(/\/$/, "").trim()
72
+
)
73
)
74
)
75
.orderBy(asc(tables.googleDriveDirectories.name))
···
97
eq(tables.users.did, did),
98
eq(
99
tables.googleDriveDirectories.path,
100
+
_.get(params, "at", "/Music").replace(/\/$/, "").trim()
101
)
102
)
103
)