refactor: Use string ids on Credentials, Workflows, Tags, and Executions DB entities (#5041)
This commit is contained in:
committed by
GitHub
parent
8bee04cd2a
commit
ee28213538
@@ -153,7 +153,7 @@ export default mixins(restApi).extend({
|
||||
},
|
||||
credentialData: {},
|
||||
credentialId: {
|
||||
type: [String, Number],
|
||||
type: String,
|
||||
default: '',
|
||||
},
|
||||
showValidationWarning: {
|
||||
|
||||
@@ -171,7 +171,7 @@ export default mixins(showMessage, nodeHelpers).extend({
|
||||
required: true,
|
||||
},
|
||||
activeId: {
|
||||
type: [String, Number],
|
||||
type: [String],
|
||||
required: true,
|
||||
},
|
||||
mode: {
|
||||
|
||||
@@ -742,7 +742,7 @@ export default mixins(externalHooks, genericHelpers, restApi, showMessage).exten
|
||||
this.isDataLoading = true;
|
||||
|
||||
const filter = this.workflowFilterPast;
|
||||
let lastId: string | number | undefined;
|
||||
let lastId: string | undefined;
|
||||
|
||||
if (this.finishedExecutions.length !== 0) {
|
||||
const lastItem = this.finishedExecutions.slice(-1)[0];
|
||||
|
||||
@@ -219,7 +219,7 @@ export default mixins(
|
||||
}
|
||||
this.loadingMore = true;
|
||||
|
||||
let lastId: string | number | undefined;
|
||||
let lastId: string | undefined;
|
||||
if (this.executions.length !== 0) {
|
||||
const lastItem = this.executions.slice(-1)[0];
|
||||
lastId = lastItem.id;
|
||||
|
||||
@@ -434,10 +434,6 @@ export default mixins(workflowHelpers, titleChange).extend({
|
||||
case WORKFLOW_MENU_ACTIONS.DOWNLOAD: {
|
||||
const workflowData = await this.getWorkflowDataToSave();
|
||||
const { tags, ...data } = workflowData;
|
||||
if (data.id && typeof data.id === 'string') {
|
||||
data.id = parseInt(data.id, 10);
|
||||
}
|
||||
|
||||
const exportData: IWorkflowToShare = {
|
||||
...data,
|
||||
meta: {
|
||||
|
||||
Reference in New Issue
Block a user