Skip to content

Commit acbc666

Browse files
committed
fix: seeder role with constant id
1 parent d62d3f6 commit acbc666

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/seeders/20200724140104-Seeder-Role.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1+
const ConstRoles = require('constants/ConstRoles')
2+
13
module.exports = {
24
up: async (queryInterface, Sequelize) => {
35
return queryInterface.bulkInsert('Roles', [
46
{
5-
id: '366aadd0-eb0c-4203-9928-7ad87c80aafa',
7+
id: ConstRoles.ID_ADMIN,
68
nama: 'Admin',
79
createdAt: new Date(),
810
updatedAt: new Date(),
911
},
1012
{
11-
id: '4f1efd44-9919-44a8-89ca-32324c810496',
13+
id: ConstRoles.ID_UMUM,
1214
nama: 'Umum',
1315
createdAt: new Date(),
1416
updatedAt: new Date(),

0 commit comments

Comments
 (0)