Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

Commit cd84687

Browse files
committed
syn2mas: fix timestamp conversion on emails
1 parent 4a0eadc commit cd84687

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tools/syn2mas/src/migrate.mts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,7 @@ export async function migrate(): Promise<void> {
255255
);
256256
continue;
257257
}
258-
const threePidCreatedAt = new Date(
259-
parseInt(`${threePid.added_at}`) * 1000,
260-
);
258+
const threePidCreatedAt = new Date(parseInt(`${threePid.added_at}`));
261259
const masUserEmail: MUserEmail = {
262260
user_email_id: makeUuid(threePidCreatedAt),
263261
user_id: masUser.user_id,
@@ -267,7 +265,7 @@ export async function migrate(): Promise<void> {
267265

268266
if (threePid.validated_at) {
269267
masUserEmail.confirmed_at = new Date(
270-
parseInt(`${threePid.validated_at}`) * 1000,
268+
parseInt(`${threePid.validated_at}`),
271269
);
272270
}
273271

0 commit comments

Comments
 (0)