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
fix match condition
tsiry-sandratraina.com
9 months ago
0b26ace8
03b1ced1
+4
-3
1 changed file
expand all
collapse all
unified
split
rockskyapi
rocksky-auth
src
xrpc
app
rocksky
spotify
getCurrentlyPlaying.ts
+4
-3
rockskyapi/rocksky-auth/src/xrpc/app/rocksky/spotify/getCurrentlyPlaying.ts
···
139
139
};
140
140
141
141
const withUriAndLikes = ([track, ctx, user]: [any, Context, SelectUser]) => {
142
142
-
console.log(">> track");
143
143
-
console.log(track);
144
142
return Effect.tryPromise({
145
143
try: async () => {
146
144
const sha256 = createHash("sha256")
···
167
165
.execute()
168
166
.then((results) =>
169
167
Match.value(track).pipe(
170
170
-
Match.when({}, () => ({})),
168
168
+
Match.when(
169
169
+
(t) => Object.keys(t).length > 0,
170
170
+
() => ({})
171
171
+
),
171
172
Match.orElse(() => ({
172
173
...track,
173
174
songUri: record?.uri,