diff --git a/src/server-extension/project-resolver.ts b/src/server-extension/project-resolver.ts index 29c5ae6..5c75815 100644 --- a/src/server-extension/project-resolver.ts +++ b/src/server-extension/project-resolver.ts @@ -73,6 +73,7 @@ export class ProjectResolver { const query = ` SELECT project.id, + project.source, project.rf_rounds, SUM(organisation_project.count) AS total_count FROM @@ -94,6 +95,7 @@ export class ProjectResolver { return rawProjects.map( (rawProject: { id: string; + source: string; rf_rounds: number[] | null; total_count: number; }) => ({ diff --git a/src/server-extension/types.ts b/src/server-extension/types.ts index 20c10f1..f91b7cd 100644 --- a/src/server-extension/types.ts +++ b/src/server-extension/types.ts @@ -13,6 +13,9 @@ export class ProjectsSortedByVouchOrFlagType { @Field(() => [Int], { nullable: true }) rfRounds: number[] = []; + + @Field() + source: string = ""; } @ObjectType()