notherbase-fs 1.2.8 → 1.2.9

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.
@@ -6,9 +6,9 @@ const getRouterWithIO = function getRouterWithIO(io) {
6
6
  try {
7
7
  //const foundAccount = await User.findOne({ _id: req.session.currentUser });
8
8
 
9
- if (req.session.currentUserFull) {
9
+ if (req.session.currentUser) {
10
10
  io.to(req.body.room).emit('chat message', {
11
- name: req.session.currentUserFull.username,
11
+ name: req.session.currentUser,
12
12
  time: Date.now(),
13
13
  text: req.body.text
14
14
  });
@@ -29,7 +29,7 @@ router.get("/", async function(req, res) {
29
29
  router.post("/", async function(req, res) {
30
30
  if (connectionSuccess) {
31
31
  try {
32
- if (req.session.currentUserFull) {
32
+ if (req.session.currentUser) {
33
33
  let foundInventory = await inventory.findOne({user: req.session.currentUser}).populate("items.item");
34
34
 
35
35
  let holding = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notherbase-fs",
3
- "version": "1.2.8",
3
+ "version": "1.2.9",
4
4
  "description": "Functions to help make developing for NotherBase easier.",
5
5
  "main": "index.js",
6
6
  "scripts": {