Skip to content

Commit 72d49ea

Browse files
alexey-yarmoshMartinKolarik
authored andcommitted
feat: update adoption without API response (#123)
1 parent e7a4d3c commit 72d49ea

13 files changed

Lines changed: 274 additions & 240 deletions

File tree

‎package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"bluebird": "^3.7.2",
1111
"config": "^4.0.0",
1212
"config-mapper-env": "^3.0.1",
13+
"countries-list": "^3.1.1",
1314
"knex": "^3.1.0",
1415
"lodash": "^4.17.21",
1516
"mysql": "^2.18.1"

‎pnpm-lock.yaml‎

Lines changed: 12 additions & 74 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎seeds/development/03-user-probes.js‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export const seed = async (knex) => {
6565
version: '0.28.0',
6666
hardwareDevice: null,
6767
hardwareDeviceFirmware: null,
68+
nodeVersion: 'v20.18.0',
6869
allowedCountries: JSON.stringify([ 'IT' ]),
6970
customLocation: {
7071
city: 'Naples',
@@ -106,6 +107,7 @@ export const seed = async (knex) => {
106107
version: '0.28.0',
107108
hardwareDevice: null,
108109
hardwareDeviceFirmware: null,
110+
nodeVersion: 'v20.18.0',
109111
allowedCountries: JSON.stringify([ 'AR' ]),
110112
customLocation: null,
111113
originalLocation: null,
@@ -356,7 +358,7 @@ export const seed = async (knex) => {
356358
name: 'sao-paulo-probe-01',
357359
network: 'BINARIO CLOUD SER DE COMPUTACAO E INFORMATICA LTDA',
358360
onlineTimesToday: 28,
359-
state: 'SP',
361+
state: null,
360362
status: 'ready',
361363
tags: JSON.stringify([
362364
{ value: 'datacenter--2355--4663', prefix: user.github_username },
@@ -376,7 +378,7 @@ export const seed = async (knex) => {
376378
customLocation: {
377379
city: 'Sao Paulo',
378380
country: 'BR',
379-
state: 'SP',
381+
state: null,
380382
latitude: -23.55,
381383
longitude: -46.63,
382384
},
@@ -412,7 +414,7 @@ export const seed = async (knex) => {
412414
name: 'mumbai-probe-01',
413415
network: 'Google LLC',
414416
onlineTimesToday: 0,
415-
state: 'MH',
417+
state: null,
416418
status: 'offline',
417419
tags: JSON.stringify([]),
418420
systemTags: JSON.stringify([ 'eyeball-network' ]),
@@ -2937,7 +2939,7 @@ export const seed = async (knex) => {
29372939
isIPv6Supported: 1,
29382940
allowedCountries: JSON.stringify([ 'CA' ]),
29392941
customLocation: {
2940-
city: 'Toronto', country: 'CA', state: 'ON', latitude: 43.65107, longitude: -79.347015,
2942+
city: 'Toronto', country: 'CA', state: null, latitude: 43.65107, longitude: -79.347015,
29412943
},
29422944
originalLocation: {
29432945
country: 'CA',
@@ -2979,7 +2981,7 @@ export const seed = async (knex) => {
29792981
isIPv6Supported: 1,
29802982
allowedCountries: JSON.stringify([ 'AU' ]),
29812983
customLocation: {
2982-
city: 'Sydney', country: 'AU', state: 'NSW', latitude: -33.8688, longitude: 151.2093,
2984+
city: 'Sydney', country: 'AU', state: null, latitude: -33.8688, longitude: 151.2093,
29832985
},
29842986
originalLocation: {
29852987
country: 'AU',
@@ -3021,7 +3023,7 @@ export const seed = async (knex) => {
30213023
isIPv6Supported: 1,
30223024
allowedCountries: JSON.stringify([ 'BR' ]),
30233025
customLocation: {
3024-
city: 'Sao Paulo', country: 'BR', state: 'SP', latitude: -23.5505, longitude: -46.6333,
3026+
city: 'Sao Paulo', country: 'BR', state: null, latitude: -23.5505, longitude: -46.6333,
30253027
},
30263028
originalLocation: {
30273029
country: 'BR',
@@ -3063,7 +3065,7 @@ export const seed = async (knex) => {
30633065
isIPv6Supported: 1,
30643066
allowedCountries: JSON.stringify([ 'IN' ]),
30653067
customLocation: {
3066-
city: 'Mumbai', country: 'IN', state: 'MH', latitude: 19.0760, longitude: 72.8777,
3068+
city: 'Mumbai', country: 'IN', state: null, latitude: 19.0760, longitude: 72.8777,
30673069
},
30683070
originalLocation: {
30693071
country: 'IN',

0 commit comments

Comments
 (0)