Skip to content

Commit

Permalink
fix(editor): Fix Luxon date parsing of ExecutionsUsage component (#6333)
Browse files Browse the repository at this point in the history
* fix(editor): Fix luxon date parsing of ExecutionsUsage component

* Fix wrong indent
  • Loading branch information
OlegIvaniv authored and maspio committed May 30, 2023
1 parent 672b8f5 commit 4045aee
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/editor-ui/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export default defineComponent({
},
async checkForCloudPlanData(): Promise<void> {
try {
await this.cloudPlanStore.getOwnerCurrentPLan();
await this.cloudPlanStore.getOwnerCurrentPlan();
if (!this.cloudPlanStore.userIsTrialing) return;
await this.cloudPlanStore.getInstanceCurrentUsage();
this.startPollingInstanceUsageData();
Expand Down
5 changes: 5 additions & 0 deletions packages/editor-ui/src/mixins/nodeHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import { mapStores } from 'pinia';
import { useSettingsStore } from '@/stores/settings.store';
import { useUsersStore } from '@/stores/users.store';
import { useWorkflowsStore } from '@/stores/workflows.store';
import { useRootStore } from '@/stores';
import { useNodeTypesStore } from '@/stores/nodeTypes.store';
import { useCredentialsStore } from '@/stores/credentials.store';
import { defineComponent } from 'vue';
Expand All @@ -49,6 +50,7 @@ export const nodeHelpers = defineComponent({
useSettingsStore,
useWorkflowsStore,
useUsersStore,
useRootStore,
),
},
methods: {
Expand Down Expand Up @@ -524,6 +526,9 @@ export const nodeHelpers = defineComponent({
data as INode,
nodeType.subtitle,
'internal',
this.rootStore.timezone,
{},
undefined,
PLACEHOLDER_FILLED_AT_EXECUTION_TIME,
) as string | undefined;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/editor-ui/src/stores/cloudPlan.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const useCloudPlanStore = defineStore('cloudPlan', () => {
return state.usage?.executions >= state.data?.monthlyExecutionsLimit;
});

const getOwnerCurrentPLan = async () => {
const getOwnerCurrentPlan = async () => {
const cloudUserId = settingsStore.settings.n8nMetadata?.userId;
const hasCloudPlan =
usersStore.currentUser?.isOwner && settingsStore.isCloudDeployment && cloudUserId;
Expand All @@ -72,7 +72,7 @@ export const useCloudPlanStore = defineStore('cloudPlan', () => {

return {
state,
getOwnerCurrentPLan,
getOwnerCurrentPlan,
getInstanceCurrentUsage,
userIsTrialing,
currentPlanData,
Expand Down

0 comments on commit 4045aee

Please sign in to comment.