Add dev tag handling in build workflow & remove debug logs from destinationEdit store
- Updated `.gitea/workflows/build.yml` to push `dev` tag when on the `dev` branch. - Removed debug `console.log` statements from `destinationEdit.js`.
This commit is contained in:
parent
cbd467d3b0
commit
0fef090372
2 changed files with 4 additions and 9 deletions
|
|
@ -118,8 +118,9 @@ jobs:
|
|||
echo "Pushing latest and main tags..."
|
||||
docker push ${IMAGE_BASE}:latest
|
||||
docker push ${IMAGE_BASE}:main
|
||||
else
|
||||
echo "Skipping latest/main tags - not on main branch (current: ${{ gitea.ref_name }})"
|
||||
elif [ "${{ gitea.ref_name }}" = "dev" ]; then
|
||||
echo "Pushing dev tag..."
|
||||
docker push ${IMAGE_BASE}:dev
|
||||
fi
|
||||
|
||||
- name: Create and push git tag
|
||||
|
|
|
|||
|
|
@ -128,14 +128,10 @@ export const useDestinationEditStore = defineStore('destinationEdit', {
|
|||
}, 10));
|
||||
|
||||
const destinationMap = new Map();
|
||||
|
||||
console.log("premiseids", premiseIds )
|
||||
|
||||
|
||||
premiseIds.forEach(premiseId => {
|
||||
this.destinations.get(premiseId)?.forEach(toUpdate => {
|
||||
|
||||
console.log("toUpdate", toUpdate)
|
||||
|
||||
destinationMap.set(toUpdate.id,{
|
||||
annual_amount: toUpdate.annual_amount,
|
||||
repackaging_costs: toUpdate.repackaging_costs,
|
||||
|
|
@ -149,8 +145,6 @@ export const useDestinationEditStore = defineStore('destinationEdit', {
|
|||
} )
|
||||
});
|
||||
|
||||
console.log("destmap",destinationMap)
|
||||
|
||||
await performRequest(this, 'PUT', `${config.backendUrl}/calculation/destination/all`, {destinations: Object.fromEntries(destinationMap)}, false);
|
||||
|
||||
this.loading = false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue