frontend client for gemstone. decentralised workplace app

fix: multiply by correct order of magnitude

tids are based on microseconds not miliseconds

serenity bcc05f7a bb158fe8

Changed files
+2 -2
src
lib
utils
+2 -2
src/lib/utils/gmstn.ts
···
agent: Agent;
}): Promise<Result<undefined, string>> => {
const now = new Date();
-
const rkey = TID.create(now.getTime(), Math.floor(Math.random() * 1023));
+
const rkey = TID.create(now.getTime() * 1_000, Math.floor(Math.random() * 1023));
const record: Omit<SystemsGmstnDevelopmentChannel, "$type"> = {
// @ts-expect-error we want to explicitly use the ISO string variant
···
agent: Agent;
}): Promise<Result<undefined, string>> => {
const now = new Date();
-
const rkey = TID.create(now.getTime(), Math.floor(Math.random() * 1023));
+
const rkey = TID.create(now.getTime() * 1_000, Math.floor(Math.random() * 1023));
const record: Omit<SystemsGmstnDevelopmentChannelMembership, "$type"> = {
// @ts-expect-error we want to explicitly use the ISO string variant