Use user ID of currently logged in user

buefy-0.9
Manuel Kasper 2023-09-28 11:29:36 +02:00
rodzic 53bff389c3
commit b19f9d5ecc
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -1,8 +1,9 @@
import axios from 'axios'
import ssoauth from './ssoauth.js'
import utils from './utils.js'
export default {
mixins: [ssoauth],
mixins: [ssoauth, utils],
methods: {
loadActivations (callsign) {
return axios.get(process.env.VUE_APP_API_URL + '/activations/' + callsign)
@ -56,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/8877/' + new Date().getUTCFullYear() + '/1')
return this.axiosAuth.get('https://api-db2.sota.org.uk/logs/activator/' + this.myUserId + '/' + new Date().getUTCFullYear() + '/1')
.then(response => {
let myActivatedSummitsThisYear = new Set()
response.data.forEach(ent => {