1
0
mirror of https://github.com/badges/shields.git synced 2025-04-18 19:44:04 +03:00

Use Ecologi API to power Treeware badges (#10467)

This commit is contained in:
Pierre-Yves Bigourdan 2024-08-21 19:35:45 +02:00 committed by GitHub
parent d5bc5cac35
commit c874f1890c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ export default class TreewareTrees extends BaseJsonService {
}
async fetch({ reference }) {
const url = 'https://public.offset.earth/users/treeware/trees'
const url = 'https://public.ecologi.com/users/treeware/trees'
return this._requestJson({
url,
schema: apiSchema,

View File

@ -12,7 +12,7 @@ t.create('request for existing package')
t.create('request for existing package (mock)')
.get('/stoplightio/spectral.json')
.intercept(nock =>
nock('https://public.offset.earth')
nock('https://public.ecologi.com')
.get('/users/treeware/trees?ref=65c6e3e942e7464b4591e0c8b70d11d5')
.reply(200, { total: 50 }),
)