mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 16:00:32 +00:00
rename get system method on shuttle repository, update tests
This commit is contained in:
@@ -4,7 +4,7 @@ import { Resolvers } from "../generated/graphql";
|
||||
export const QueryResolvers: Resolvers<ServerContext> = {
|
||||
Query: {
|
||||
systems: async (_parent, args, contextValue, _info) => {
|
||||
return await contextValue.shuttleRepository.getSystems();
|
||||
return await contextValue.shuttleRepository.getSystemIfExists();
|
||||
},
|
||||
system: async (_parent, args, contextValue, _info) => {
|
||||
if (!args.id) return null;
|
||||
|
||||
Reference in New Issue
Block a user