Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix(tenant): Handle problems and add multiple queues #1706

Merged
merged 4 commits into from
Sep 19, 2023

Conversation

arimet
Copy link
Collaborator

@arimet arimet commented Sep 19, 2023

No description provided.

@arimet arimet changed the title Fix/multi tenant Fix(tenant): Handle problems and add multiple queues Sep 19, 2023
};

export const cancelJob = async (ctx, jobType) => {
const activeJob = await getActiveJob();
const activeJob = await getActiveJob(ctx.tenant);
if (activeJob?.data?.jobType === jobType) {
if (jobType === 'publisher') {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be better using PUBLISHER constant

@@ -90,9 +90,10 @@ const JobProgressComponent = props => {

useEffect(() => {
const socket = io();
const tenant = sessionStorage.getItem('lodex-tenant') || 'lodex';
const tenant = sessionStorage.getItem('lodex-tenant') || 'default';
const dbName = sessionStorage.getItem('lodex-dbName');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mixed kebab-case and camelCase in 'lodex-dbName' is a little strange

@JulienMattiussi JulienMattiussi merged commit 88c67af into master Sep 19, 2023
6 checks passed
@parmentf parmentf deleted the fix/multi-tenant branch November 6, 2023 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants