chore: log errors
This commit is contained in:
@@ -75,7 +75,7 @@ export default {
|
||||
messageId: this.messageId,
|
||||
});
|
||||
} catch (error) {
|
||||
// Ignore error
|
||||
console.log(error);
|
||||
} finally {
|
||||
this.isUpdating = false;
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ export default {
|
||||
);
|
||||
this.dyteAuthToken = authToken;
|
||||
} catch (error) {
|
||||
// Ignore Error for now
|
||||
console.log(error);
|
||||
} finally {
|
||||
this.isLoading = false;
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ export const actions = {
|
||||
const { data } = await ContactsAPI.get();
|
||||
commit(SET_CURRENT_USER, data);
|
||||
} catch (error) {
|
||||
// Ignore error
|
||||
console.log(error);
|
||||
}
|
||||
},
|
||||
update: async ({ dispatch }, { user }) => {
|
||||
@@ -39,7 +39,7 @@ export const actions = {
|
||||
await ContactsAPI.update(user);
|
||||
dispatch('get');
|
||||
} catch (error) {
|
||||
// Ignore error
|
||||
console.log(error);
|
||||
}
|
||||
},
|
||||
setUser: async ({ dispatch }, { identifier, user: userObject }) => {
|
||||
@@ -91,14 +91,14 @@ export const actions = {
|
||||
try {
|
||||
await ContactsAPI.setCustomAttributes(customAttributes);
|
||||
} catch (error) {
|
||||
// Ignore error
|
||||
console.log(error);
|
||||
}
|
||||
},
|
||||
deleteCustomAttribute: async (_, customAttribute) => {
|
||||
try {
|
||||
await ContactsAPI.deleteCustomAttribute(customAttribute);
|
||||
} catch (error) {
|
||||
// Ignore error
|
||||
console.log(error);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
@@ -25,7 +25,7 @@ export const actions = {
|
||||
// Emit event to notify that conversation is created and show the chat screen
|
||||
emitter.emit(ON_CONVERSATION_CREATED);
|
||||
} catch (error) {
|
||||
// Ignore error
|
||||
console.log(error);
|
||||
} finally {
|
||||
commit('setConversationUIFlag', { isCreating: false });
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ export const actions = {
|
||||
commit(SET_CONVERSATION_ATTRIBUTES, data);
|
||||
commit('conversation/setMetaUserLastSeenAt', lastSeen, { root: true });
|
||||
} catch (error) {
|
||||
// Ignore error
|
||||
console.log(error);
|
||||
}
|
||||
},
|
||||
update({ commit }, data) {
|
||||
|
||||
@@ -9,14 +9,14 @@ export const actions = {
|
||||
try {
|
||||
await conversationLabels.create(label);
|
||||
} catch (error) {
|
||||
// Ignore error
|
||||
console.log(error);
|
||||
}
|
||||
},
|
||||
destroy: async (_, label) => {
|
||||
try {
|
||||
await conversationLabels.destroy(label);
|
||||
} catch (error) {
|
||||
// Ignore error
|
||||
console.log(error);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
@@ -5,7 +5,7 @@ const actions = {
|
||||
try {
|
||||
await events.create(name);
|
||||
} catch (error) {
|
||||
// Ignore error
|
||||
console.log(error);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
@@ -38,7 +38,7 @@ export const actions = {
|
||||
);
|
||||
dispatch('contacts/get', {}, { root: true });
|
||||
} catch (error) {
|
||||
// Ignore error
|
||||
console.log(error);
|
||||
}
|
||||
commit('toggleUpdateStatus', false);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user