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
tealfm: Rename timestamps and drop String casts
tsiry-sandratraina.com
4 weeks ago
d0ff284d
88de6f2a
+4
-4
1 changed file
expand all
collapse all
unified
split
apps
api
src
tealfm
index.ts
+4
-4
apps/api/src/tealfm/index.ts
···
114
114
recordingMbId: track.trackMBID,
115
115
submissionClientAgent: SUBMISSION_CLIENT_AGENT,
116
116
};
117
117
-
const nowSec = new Date(Date.now()).toISOString();
118
118
-
const expirySec = new Date(Date.now() + 10 * 60 * 1000).toISOString(); // 10 minutes from now
117
117
+
const time = new Date().toISOString();
118
118
+
const expiry = new Date(Date.now() + 10 * 60 * 1000).toISOString(); // 10 minutes from now
119
119
const record: Status.Record = {
120
120
$type: "fm.teal.alpha.actor.status",
121
121
item,
122
122
-
time: String(nowSec),
123
123
-
expiry: String(expirySec),
122
122
+
time,
123
123
+
expiry,
124
124
};
125
125
const swapRecord = await getStatusSwapRecord(agent);
126
126
const res = await agent.com.atproto.repo.putRecord({