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 typo
tsiry-sandratraina.com
2 months ago
bc2b22a8
2e8dc489
+5
-4
1 changed file
expand all
collapse all
unified
split
apps
feeds
src
algos
dubstep.ts
+5
-4
apps/feeds/src/algos/dubstep.ts
···
10
10
) => {
11
11
const { limit = 50, cursor } = params;
12
12
13
13
-
const whereConditions = [arrayContains(schema.artists.genres, ["dupstep"])];
13
13
+
const whereConditions = [arrayContains(schema.artists.genres, ["dubstep"])];
14
14
15
15
if (cursor) {
16
16
const cursorDate = new Date(parseInt(cursor, 10));
···
28
28
29
29
const feed = scrobbles.map(({ scrobbles }) => ({ scrobble: scrobbles.uri }));
30
30
31
31
-
const { scrobbles: lastScrobble } =
32
32
-
scrobbles.length > 0 ? scrobbles.at(-1)! : { scrobbles: null };
31
31
+
const { scrobbles: lastScrobble } = scrobbles.length > 0
32
32
+
? scrobbles.at(-1)!
33
33
+
: { scrobbles: null };
33
34
const nextCursor = lastScrobble
34
35
? lastScrobble.timestamp.getTime().toString(10)
35
36
: undefined;
···
41
42
};
42
43
43
44
export const publisherDid = "did:plc:vegqomyce4ssoqs7zwqvgqty";
44
44
-
export const rkey = "dupstep";
45
45
+
export const rkey = "dubstep";
45
46
46
47
export const info = {
47
48
handler,