frontend client for gemstone. decentralised workplace app
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: multiply by correct order of magnitude

tids are based on microseconds not miliseconds

serenity bcc05f7a bb158fe8

+2 -2
+2 -2
src/lib/utils/gmstn.ts
··· 153 153 agent: Agent; 154 154 }): Promise<Result<undefined, string>> => { 155 155 const now = new Date(); 156 - const rkey = TID.create(now.getTime(), Math.floor(Math.random() * 1023)); 156 + const rkey = TID.create(now.getTime() * 1_000, Math.floor(Math.random() * 1023)); 157 157 158 158 const record: Omit<SystemsGmstnDevelopmentChannel, "$type"> = { 159 159 // @ts-expect-error we want to explicitly use the ISO string variant ··· 192 192 agent: Agent; 193 193 }): Promise<Result<undefined, string>> => { 194 194 const now = new Date(); 195 - const rkey = TID.create(now.getTime(), Math.floor(Math.random() * 1023)); 195 + const rkey = TID.create(now.getTime() * 1_000, Math.floor(Math.random() * 1023)); 196 196 197 197 const record: Omit<SystemsGmstnDevelopmentChannelMembership, "$type"> = { 198 198 // @ts-expect-error we want to explicitly use the ISO string variant