Skip to content

Commit

Permalink
Fixes #93
Browse files Browse the repository at this point in the history
  • Loading branch information
megastary committed Oct 20, 2023
1 parent dfbfa08 commit 2d7f99a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/stock.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Router } from 'express'
var router = Router()
import c from '../models/delivery.js'
import Delivery from '../models/delivery.js'
import { ensureAuthenticated } from '../functions/ensureAuthenticated.js'

/* GET about page. */
Expand All @@ -10,7 +10,7 @@ router.get('/', ensureAuthenticated, function (req, res, next) {
return
}

Product.aggregate([
Delivery.aggregate([
{
$match: {
supplierId: req.user._id
Expand Down

0 comments on commit 2d7f99a

Please sign in to comment.