Skip to content

Commit

Permalink
Sync latest version 2 (alpha)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriellaputri committed Sep 14, 2023
1 parent a98d457 commit dfb4ee7
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 33 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

on:
push:
branches: [master]
branches: [master, alpha-v2]
pull_request:
branches: [master]
branches: [master, alpha-v2]

jobs:
build:
Expand Down
24 changes: 0 additions & 24 deletions api/src/helpers/getFrequentPoster.ts

This file was deleted.

4 changes: 0 additions & 4 deletions api/src/typeSchemas/Topic.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { objectType } from 'nexus';

import { getTopicAuthorUserId } from '../helpers/getTopicAuthor';
import { getFrequentPosterUserId } from '../helpers/getFrequentPoster';

export let Topic = objectType({
name: 'Topic',
Expand Down Expand Up @@ -58,9 +57,6 @@ export let Topic = objectType({
t.nullable.int('authorUserId', {
resolve: ({ posters }) => getTopicAuthorUserId(posters) ?? null,
});
t.nullable.int('frequentPosterUserId', {
resolve: ({ posters }) => getFrequentPosterUserId(posters) || null,
});
// Note: Comment out for maybe next phase
// t.nullable.int('recentPosterUserId', {
// resolve: ({ posters }) => {
Expand Down
1 change: 0 additions & 1 deletion api/src/types/dataTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ export type Topic = {
pinnedGlobally: boolean | null;
posters: Array<TopicPoster>;
authorUserId?: number | null;
frequentPosterUserId?: number | null;
};

type TagFilter = {
Expand Down
1 change: 0 additions & 1 deletion frontend/src/graphql/server/getTopicDetail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export const TOPIC_FRAGMENT = gql`
}
}
authorUserId
frequentPosterUserId
pinned
}
`;
Expand Down
1 change: 0 additions & 1 deletion frontend/src/graphql/server/topics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ export const TOPICS = gql`
}
}
authorUserId
frequentPosterUserId
pinned
}
}
Expand Down

0 comments on commit dfb4ee7

Please sign in to comment.