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

task definitions fix #328

Merged
merged 1 commit into from
Jul 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/schema/api.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,7 @@ type Tag {

type TaskDefinition implements Node {
concurrentExecLimit: Int
createTime: String
createdAt: String
createdBy: String
description: String
id: ID!
Expand All @@ -1094,7 +1094,7 @@ type TaskDefinition implements Node {
retryLogic: RetryLogic
timeoutPolicy: TaskTimeoutPolicy
timeoutSeconds: Int!
updateTime: String
updatedAt: String
updatedBy: String
}

Expand Down
8 changes: 4 additions & 4 deletions src/schema/nexus-typegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1630,7 +1630,7 @@ export interface NexusGenFieldTypes {
TaskDefinition: {
// field return type
concurrentExecLimit: number | null; // Int
createTime: string | null; // String
createdAt: string | null; // String
createdBy: string | null; // String
description: string | null; // String
id: string; // ID!
Expand All @@ -1648,7 +1648,7 @@ export interface NexusGenFieldTypes {
retryLogic: NexusGenEnums['RetryLogic'] | null; // RetryLogic
timeoutPolicy: NexusGenEnums['TaskTimeoutPolicy'] | null; // TaskTimeoutPolicy
timeoutSeconds: number; // Int!
updateTime: string | null; // String
updatedAt: string | null; // String
updatedBy: string | null; // String
};
TaskDefinitionConnection: {
Expand Down Expand Up @@ -2395,7 +2395,7 @@ export interface NexusGenFieldTypeNames {
TaskDefinition: {
// field return type name
concurrentExecLimit: 'Int';
createTime: 'String';
createdAt: 'String';
createdBy: 'String';
description: 'String';
id: 'ID';
Expand All @@ -2413,7 +2413,7 @@ export interface NexusGenFieldTypeNames {
retryLogic: 'RetryLogic';
timeoutPolicy: 'TaskTimeoutPolicy';
timeoutSeconds: 'Int';
updateTime: 'String';
updatedAt: 'String';
updatedBy: 'String';
};
TaskDefinitionConnection: {
Expand Down
4 changes: 2 additions & 2 deletions src/schema/task-definitons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ export const TaskDefinition = objectType({
});
t.nonNull.string('name');
t.nonNull.int('timeoutSeconds');
t.string('createTime', {
t.string('createdAt', {
resolve: (taskDefinition) =>
taskDefinition.createTime ? new Date(taskDefinition.createTime).toISOString() : new Date().toISOString(),
});
t.string('updateTime', {
t.string('updatedAt', {
resolve: (taskDefinition) =>
taskDefinition.updateTime ? new Date(taskDefinition.updateTime).toISOString() : new Date().toISOString(),
});
Expand Down