Skip to content
This repository has been archived by the owner on Dec 20, 2022. It is now read-only.

Commit

Permalink
timestamp + tests (#133)
Browse files Browse the repository at this point in the history
* timestamp + tests

* fixed console.logs
claireclark1 authored Oct 19, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 467bb01 commit 1328991
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/services/content.ts
Original file line number Diff line number Diff line change
@@ -82,7 +82,6 @@ export const sendPost = async (
buildBaseUploadHostUrl(`${hash}.json`).toString(),
hash
);

await dsnp.batchAnnouncement(`${hash}.parquet`, announcement);
};

@@ -301,7 +300,7 @@ const handleBatchAnnouncement = (dispatch: Dispatch) => (
);
} else if (isBroadcastAnnouncement(announcement)) {
let publishedDate;
if (announcement.createdAt > Number.MAX_SAFE_INTEGER) {
if (announcement.createdAt < Number.MAX_SAFE_INTEGER) {
publishedDate = new Date(
Number(announcement.createdAt)
).toISOString();

0 comments on commit 1328991

Please sign in to comment.