diff --git a/packages/graphql/src/services/microLearning.ts b/packages/graphql/src/services/microLearning.ts index 064de0659c..30d71494f4 100644 --- a/packages/graphql/src/services/microLearning.ts +++ b/packages/graphql/src/services/microLearning.ts @@ -304,6 +304,8 @@ export async function publishMicroLearning( }, }) + ctx.emitter.emit('invalidate', { typename: 'MicroLearning', id }) + return microLearning } @@ -332,6 +334,8 @@ export async function unpublishMicroLearning( }, }) + ctx.emitter.emit('invalidate', { typename: 'MicroLearning', id }) + return microLearning }