Guest User

Untitled

a guest
Dec 3rd, 2019
86
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. export function getHome(ctx) {
  2.   getSessionInfo(ctx);
  3.  
  4.   if(ctx.loggedIn){
  5.     get("appdata", "events", "Kinvey")
  6.     .then(data => {
  7.       ctx.events = data;
  8.  
  9.       this.loadPartials(partials).partial("./templates/home/home.hbs");
  10.     })
  11.     .catch(console.error);
  12.   } else {
  13.     this.loadPartials(partials).partial("./templates/home/home.hbs");
  14.   }
  15. }
RAW Paste Data