Skip to content

Commit c27f91f

Browse files
committed
Fix the bug with duplicate id
1 parent c5d7666 commit c27f91f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

constants/role.constant.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const sponsorT4Role = {
8989
};
9090

9191
const sponsorT5Role = {
92-
"_id": mongoose.Types.ObjectId.createFromTime(7),
92+
"_id": mongoose.Types.ObjectId.createFromTime(8),
9393
"name": Constants.General.SPONSOR_T5,
9494
"routes": [
9595
Constants.Routes.sponsorRoutes.post,
@@ -110,7 +110,7 @@ function createAllSingularRoles() {
110110
let roles = [];
111111

112112
// i is unique integer so that objectId is constant
113-
var i = 10000;
113+
var i = 1000000;
114114
for (let routeGroupKey in allRoutes) {
115115

116116
if (!allRoutes.hasOwnProperty(routeGroupKey)) {

0 commit comments

Comments
 (0)