Skip to content

Commit

Permalink
fixing sharing issue causing by nalytics import
Browse files Browse the repository at this point in the history
  • Loading branch information
lerayj committed Nov 5, 2024
1 parent 436a41c commit 24a4a68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/sharing.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import _ from 'lodash'
import axios from 'axios'

export default ({ app, $supabase, $utils, $user }, inject) => {
export default ({ app, $supabase, $utils, $user, $analytics }, inject) => {
const sharing = {
async addToCollabs (procedure, collabs, collectivite) {
let toInsert = collabs.map(e => ({
Expand All @@ -27,7 +27,7 @@ export default ({ app, $supabase, $utils, $user }, inject) => {
toInsert = [...toInsert, sender]
console.log('TO INSERT: ', toInsert)

this.$analytics({
$analytics({
category: 'partage',
name: 'ajout collaborateur',
value: 'write_frise'
Expand Down

0 comments on commit 24a4a68

Please sign in to comment.