From a60b4a91167bf898a61333892a7967bbfbca176d Mon Sep 17 00:00:00 2001 From: Gabriel Grubba Date: Mon, 30 Jan 2023 11:21:05 -0300 Subject: [PATCH] chore: added publication to chakra ui skeleton --- tools/static-assets/skel-chakra-ui/server/main.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/static-assets/skel-chakra-ui/server/main.js b/tools/static-assets/skel-chakra-ui/server/main.js index 9c774d214c..0198535e0a 100644 --- a/tools/static-assets/skel-chakra-ui/server/main.js +++ b/tools/static-assets/skel-chakra-ui/server/main.js @@ -28,4 +28,10 @@ Meteor.startup(async () => { url: 'https://forums.meteor.com', }); } + + // We publish the entire Links collection to all clients. + // In order to be fetched in real-time to the clients + Meteor.publish("links", function () { + return LinksCollection.find(); + }); });