Skip to content

Commit

Permalink
fix: add emitting public user schema instead of full one
Browse files Browse the repository at this point in the history
  • Loading branch information
fruneen committed Feb 22, 2024
1 parent 4174336 commit 331a3e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/apps/api/src/resources/user/user.handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ eventBus.on(`${USERS}.updated`, (data: InMemoryEvent<User>) => {
try {
const user = data.doc;

ioEmitter.publishToUser(user._id, 'user:updated', user);
ioEmitter.publishToUser(user._id, 'user:updated', userService.getPublic(user));
} catch (err) {
logger.error(`${USERS}.updated handler error: ${err}`);
}
Expand Down

0 comments on commit 331a3e0

Please sign in to comment.