Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2021-10-16 19:26:55 +0300
committerdartcafe <github@dartcafe.de>2021-10-16 19:26:55 +0300
commit581a9e057c130d4082454ba9e0cd781189aa3993 (patch)
treea9b1ec8cfcb607f8ffa95aa9fdb25655ca4a84b3 /src/js/store/modules/shares.js
parent2120d555e3c2e44a9964f16c7fdbfd842a48f17d (diff)
final tidy
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/store/modules/shares.js')
-rw-r--r--src/js/store/modules/shares.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/store/modules/shares.js b/src/js/store/modules/shares.js
index f40d00e7..272c1ea7 100644
--- a/src/js/store/modules/shares.js
+++ b/src/js/store/modules/shares.js
@@ -83,10 +83,10 @@ const actions = {
},
async add(context, payload) {
- const endPoint = `apps/polls/poll/${context.rootState.route.params.id}`
+ const endPoint = `apps/polls/poll/${context.rootState.route.params.id}/share`
try {
- await axios.post(generateUrl(`${endPoint}/share`), payload.share)
+ await axios.post(generateUrl(endPoint), payload.share)
} catch (e) {
console.error('Error writing share', { error: e.response }, { payload })
throw e