Skip to content

Commit

Permalink
chore: sync api address update
Browse files Browse the repository at this point in the history
  • Loading branch information
ppedziwiatr committed Oct 20, 2023
1 parent 3f7308d commit 83f5b0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/loadInteractions.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = async (startTimestamp, endTimestamp, whiteListedSources) => {


async function postData(data = {}) {
return await fetch('http://35.246.150.123/v1/interactions', {
return await fetch('http://api-dre-sync.warp.cc/v1/interactions', {
method: "POST",
cache: "no-store",
headers: {
Expand Down
15 changes: 2 additions & 13 deletions src/tools/syncTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,7 @@ async function main() {

const srcIds = [
// https://docs.google.com/spreadsheets/d/1F9T1Vyk3geEsrU8wVSdsPj9drO48Ae9f2UpkuE0ralI/edit#gid=0
"Of9pi--Gj7hCTawhgxOwbuWnFI1h24TTgO5pw8ENJNQ", // Atomic Asset
"W78KEzU8vIODFHzwa9ab7SS7Pjchc7KenivCiwSHxBY", // STAMP
"kP1Ed8AMvaaBrEFjatP4pSmiE_fsRrGS0EcBMQYYiyc", // STAMP-evolve
"mGxosQexdvrvzYCshzBvj18Xh1QmZX16qFJBuh4qobo", // U
"7qv5x9A0NgAlTdMnBc1H2HFvN-te0kzzuT9RNt_66g8", // UCM contract old
"eIAyBgHH-H7Qzw9fj7Austj30QKPQn27eaakvpOUSR8", // Facts
"Of9pi--Gj7hCTawhgxOwbuWnFI1h24TTgO5pw8ENJNQ", // Pages
"ovWCp0xKuHtq-bADXbtiNr6umwb_AE73kVZWtfHlX3w", // VouchDAO
"1hDZBRSptTNgnACuO9qGHLbaOfnAcMBKCHcHPRhMWUY", // VouchDAO-evolve
"LBcYEl2zwKDApj1Cow1_BYyiicxVV7OCZTexsjk6mB4", // UCM contract new
"dRTFmLwJ3cNqdNvFK4yUvwc13CrJtFOmLymLxL4HWOE", // UCM contract evolve
"yXPm9-9VyxH9otGf7xim0EJsnt21IJN8qJjanFTC_kc", // UCM contract evolve

]

//const result = await loadInteractions(1692111085730, 1692111087730, srcIds);
Expand All @@ -33,7 +22,7 @@ async function main() {

const now = Date.now();

const result = await loadInteractions(now - 4000, now - 2000, srcIds);
const result = await loadInteractions(now - 5 * 60 * 1000, now - 2000, srcIds);
console.timeLog("fetch");

//console.dir(result, {depth: null});
Expand Down

0 comments on commit 83f5b0b

Please sign in to comment.