Revert api-db2 changes for the time being (no access for sotlas SSO token)

buefy-0.9
Manuel Kasper 2023-10-19 07:48:43 +02:00
rodzic 5309668c5e
commit 5c57070b8a
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -12,13 +12,13 @@ export default {
})
},
loadActivationDetails (activationId) {
return this.axiosAuth.get('https://api-db2.sota.org.uk/logs/activation/detailed/' + this.activationId)
return this.axiosAuth.get('https://api-db.sota.org.uk/admin/secure/my_activator_log_detailed', { params: { id: this.activationId } })
.then(response => {
return response.data[0]
})
},
loadS2SLog (userId, year) {
return this.axiosAuth.get('https://api-db2.sota.org.uk/logs/s2s/' + userId + '/' + year + '/1')
return this.axiosAuth.get('https://api-db.sota.org.uk/admin/secure/s2s_log_by_id', { params: { id: userId, year } })
.then(response => {
return response.data
})
@ -57,7 +57,7 @@ export default {
if (this.$store.state.myActivatedSummitsThisYear) {
return Promise.resolve(this.$store.state.myActivatedSummitsThisYear)
} else {
return this.axiosAuth.get('https://api-db2.sota.org.uk/logs/activator/' + this.myUserId + '/' + new Date().getUTCFullYear() + '/1')
return this.axiosAuth.get('https://api-db.sota.org.uk/admin/secure/my_activator_log', { params: { year: new Date().getUTCFullYear() } })
.then(response => {
let myActivatedSummitsThisYear = new Set()
response.data.forEach(ent => {