Skip to content

Commit

Permalink
fix build error in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-codes committed Jul 4, 2024
1 parent 2209c9d commit 9fc77f5
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/playnite-web/codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const config: CodegenConfig = {
},
contextType: './context#PlayniteContext',
},
scalarsModule: require.resolve('graphql-scalars'),
//scalarsModule: require.resolve('graphql-scalars'),
}),
},
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { GraphQLScalarType } from 'graphql'
export const Date = new GraphQLScalarType({

Check warning on line 2 in apps/playnite-web/src/server/graphql/modules/base/resolvers/Date.ts

View check run for this annotation

Codecov / codecov/patch

apps/playnite-web/src/server/graphql/modules/base/resolvers/Date.ts#L1-L2

Added lines #L1 - L2 were not covered by tests
name: 'Date',
description: 'Date description',
serialize: (value) => {

Check warning on line 5 in apps/playnite-web/src/server/graphql/modules/base/resolvers/Date.ts

View check run for this annotation

Codecov / codecov/patch

apps/playnite-web/src/server/graphql/modules/base/resolvers/Date.ts#L5

Added line #L5 was not covered by tests
/* Implement logic to turn the returned value from resolvers to a value that can be sent to clients */
},
parseValue: (value) => {

Check warning on line 8 in apps/playnite-web/src/server/graphql/modules/base/resolvers/Date.ts

View check run for this annotation

Codecov / codecov/patch

apps/playnite-web/src/server/graphql/modules/base/resolvers/Date.ts#L8

Added line #L8 was not covered by tests
/* Implement logic to parse input that was sent to the server as variables */
},
parseLiteral: (ast) => {

Check warning on line 11 in apps/playnite-web/src/server/graphql/modules/base/resolvers/Date.ts

View check run for this annotation

Codecov / codecov/patch

apps/playnite-web/src/server/graphql/modules/base/resolvers/Date.ts#L11

Added line #L11 was not covered by tests
/* Implement logic to parse input that was sent to the server as literal values (string, number, or boolean) */
},
})
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { GraphQLScalarType } from 'graphql'
export const DateTime = new GraphQLScalarType({

Check warning on line 2 in apps/playnite-web/src/server/graphql/modules/base/resolvers/DateTime.ts

View check run for this annotation

Codecov / codecov/patch

apps/playnite-web/src/server/graphql/modules/base/resolvers/DateTime.ts#L1-L2

Added lines #L1 - L2 were not covered by tests
name: 'DateTime',
description: 'DateTime description',
serialize: (value) => {

Check warning on line 5 in apps/playnite-web/src/server/graphql/modules/base/resolvers/DateTime.ts

View check run for this annotation

Codecov / codecov/patch

apps/playnite-web/src/server/graphql/modules/base/resolvers/DateTime.ts#L5

Added line #L5 was not covered by tests
/* Implement logic to turn the returned value from resolvers to a value that can be sent to clients */
},
parseValue: (value) => {

Check warning on line 8 in apps/playnite-web/src/server/graphql/modules/base/resolvers/DateTime.ts

View check run for this annotation

Codecov / codecov/patch

apps/playnite-web/src/server/graphql/modules/base/resolvers/DateTime.ts#L8

Added line #L8 was not covered by tests
/* Implement logic to parse input that was sent to the server as variables */
},
parseLiteral: (ast) => {

Check warning on line 11 in apps/playnite-web/src/server/graphql/modules/base/resolvers/DateTime.ts

View check run for this annotation

Codecov / codecov/patch

apps/playnite-web/src/server/graphql/modules/base/resolvers/DateTime.ts#L11

Added line #L11 was not covered by tests
/* Implement logic to parse input that was sent to the server as literal values (string, number, or boolean) */
},
})

0 comments on commit 9fc77f5

Please sign in to comment.