Skip to content

Commit

Permalink
Add increment logic to ƒileUpload
Browse files Browse the repository at this point in the history
  • Loading branch information
LocalNewsTV committed Nov 17, 2023
1 parent 0c84b43 commit 8f406be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/frontend/src/common/store/documents.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ export default {
return ApiService.fileUpload(url, file, options)
.then(() => {
console.log('successfully added file: ' + objectName)
if(documentType === "wells"){
ApiService.incrementFileCount(`wells/${recordId}`, fileName.split("_")[0])
}
})
.catch(error => {
console.log(error)
Expand Down

0 comments on commit 8f406be

Please sign in to comment.