Add support for PostgresDB and save date as Date

This commit is contained in:
Jan Oberhauser
2019-07-22 20:29:06 +02:00
parent d027545986
commit a9453806b8
27 changed files with 310 additions and 73 deletions

View File

@@ -269,7 +269,7 @@ export const restApi = Vue.extend({
// Returns all saved executions
// TODO: For sure needs some kind of default filter like last day, with max 10 results, ...
getPastExecutions: (filter: object, limit: number, lastStartedAt?: number): Promise<IExecutionsListResponse> => {
getPastExecutions: (filter: object, limit: number, lastStartedAt?: Date): Promise<IExecutionsListResponse> => {
let sendData = {};
if (filter) {
sendData = {

View File

@@ -144,8 +144,8 @@ export const workflowRun = mixins(
id: '__IN_PROGRESS__',
finished: false,
mode: 'manual',
startedAt: new Date().getTime(),
stoppedAt: 0,
startedAt: new Date(),
stoppedAt: undefined,
workflowId: workflow.id,
data: {
resultData: {