Skip to content

Commit

Permalink
changes in seeders of cart
Browse files Browse the repository at this point in the history
  • Loading branch information
sevelinCa committed May 22, 2024
2 parents 0d4ea9e + 29069f0 commit c2a396d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/database/seeders/20240521201427-seed-carts.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,8 @@ const { v4: uuidv4 } = require('uuid');
/** @type {import('sequelize-cli').Migration} */
module.exports = {
async up(queryInterface, Sequelize) {
console.log('Getting the users')
const [users] = await queryInterface.sequelize.query(`SELECT "userId" FROM "Users"`);

users.map(user => (
console.log('The users ', user)
))

const carts = users.map(user => ({
cartId: uuidv4(),
// @ts-ignore
Expand Down

0 comments on commit c2a396d

Please sign in to comment.