Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export function getHome(ctx) {
- getSessionInfo(ctx);
- if(ctx.loggedIn){
- get("appdata", "events", "Kinvey")
- .then(data => {
- ctx.events = data;
- this.loadPartials(partials).partial("./templates/home/home.hbs");
- })
- .catch(console.error);
- } else {
- this.loadPartials(partials).partial("./templates/home/home.hbs");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement