Skip to content

Commit c0a8930

Browse files
pub status fix
1 parent ae66b92 commit c0a8930

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/stores/profile.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -2031,6 +2031,7 @@ export const useProfileStore = defineStore('profile', {
20312031
let pubResuts = utilsNetwork.publish(xml.xlmStringBasic, this.activeProfile.eId, this.activeProfile)
20322032
pubResuts.resourceLinks=[]
20332033
// if it was accepted by the system send it to the marva backend to store as posted
2034+
console.log("pubResuts.status",pubResuts.status)
20342035
if (pubResuts.status){
20352036
this.activeProfile.status = 'published'
20362037
await this.saveRecord()
@@ -2042,14 +2043,17 @@ export const useProfileStore = defineStore('profile', {
20422043
for (let rt in this.activeProfile.rt){
20432044
let type = rt.split(':').slice(-1)[0]
20442045
let url = config.convertToRegionUrl(this.activeProfile.rt[rt].URI)
2045-
let env = config.returnUrls().env
2046+
let env = config.returnUrls.env
20462047
pubResuts.resourceLinks.push({
20472048
'type':type,
20482049
'url': url,
20492050
'env': env
20502051
})
20512052
}
20522053
}
2054+
console.log("pubResuts",pubResuts)
2055+
2056+
20532057
return pubResuts
20542058

20552059
},

0 commit comments

Comments
 (0)