Skip to content

Commit

Permalink
Merge pull request #4163 from thematters/develop
Browse files Browse the repository at this point in the history
[hot release] fix(writing): log writing cache for invalidation
  • Loading branch information
gary02 authored Aug 30, 2024
2 parents 75bfd03 + aff1b7a commit ac2d1ab
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "matters-server",
"version": "5.5.1",
"version": "5.5.2",
"description": "Matters Server",
"author": "Matters <[email protected]>",
"main": "build/index.js",
Expand Down
1 change: 1 addition & 0 deletions src/common/enums/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ export enum NODE_TYPES {
Response = 'Response',
TransactionTarget = 'TransactionTarget',
PinnableWork = 'PinnableWork',
Writing = 'Writing',
}

export const APPRECIATION_TYPES = {
Expand Down
4 changes: 3 additions & 1 deletion src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ import {
const typeResolver = (type: string, result: any) => {
const unionsAndInterfaces = [
NODE_TYPES.Node,
NODE_TYPES.Notice,
NODE_TYPES.Response,
NODE_TYPES.TransactionTarget,
NODE_TYPES.Notice,
NODE_TYPES.PinnableWork,
NODE_TYPES.Writing,
]

if (unionsAndInterfaces.indexOf(type as NODE_TYPES) >= 0 && result?.__type) {
Expand Down
2 changes: 1 addition & 1 deletion src/types/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,7 @@ export default /* GraphQL */ `
type WritingEdge {
cursor: String!
node: Writing!
node: Writing! @logCache(type: "${NODE_TYPES.Writing}")
}
input RecommendationFollowingInput {
Expand Down

0 comments on commit ac2d1ab

Please sign in to comment.