notherbase-fs 1.2.4 → 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- const { inventory, game, item } = require("../models");
1
+ const { inventory, game, item, user } = require("../models");
2
2
 
3
3
  let router = require("express").Router();;
4
4
  let dir = "";
@@ -63,6 +63,7 @@ let complete = function complete(explorerBuild) {
63
63
 
64
64
  router.get(currentRoute, async function(req, res) {
65
65
  try {
66
+ const foundUser = await user.findById(req.session.currentUser);
66
67
  const foundInventory = await inventory.findOne({ user: req.session.currentUser }).populate("items.item");
67
68
 
68
69
  let serverScriptReturns = [];
@@ -84,7 +85,7 @@ let complete = function complete(explorerBuild) {
84
85
 
85
86
  let context = {
86
87
  siteTitle: "NotherBase",
87
- user: req.session.currentUserFull,
88
+ user: foundUser,
88
89
  styles: detail.options.styles,
89
90
  externalStyles: detail.options.externalStyles,
90
91
  main: detail.options.main,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notherbase-fs",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "Functions to help make developing for NotherBase easier.",
5
5
  "main": "index.js",
6
6
  "scripts": {