Skip to content

Commit

Permalink
Merge pull request #151 from Giveth/add-source-to-res
Browse files Browse the repository at this point in the history
Add source to res
  • Loading branch information
MohammadPCh authored Nov 15, 2024
2 parents ca24bf3 + bc637b5 commit 2f1109e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server-extension/project-resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -94,6 +95,7 @@ export class ProjectResolver {
return rawProjects.map(
(rawProject: {
id: string;
source: string;
rf_rounds: number[] | null;
total_count: number;
}) => ({
Expand Down
3 changes: 3 additions & 0 deletions src/server-extension/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ export class ProjectsSortedByVouchOrFlagType {

@Field(() => [Int], { nullable: true })
rfRounds: number[] = [];

@Field()
source: string = "";
}

@ObjectType()
Expand Down

0 comments on commit 2f1109e

Please sign in to comment.