aboutsummaryrefslogtreecommitdiff
path: root/src/modules/database
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/database')
-rw-r--r--src/modules/database/index.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/database/index.ts b/src/modules/database/index.ts
index 073d3f8a..5887ab09 100644
--- a/src/modules/database/index.ts
+++ b/src/modules/database/index.ts
@@ -69,7 +69,6 @@ export class Database {
* faker.database.mongodbObjectId() // 'e175cac316a79afdd0ad3afb'
*/
mongodbObjectId(): string {
- // strip the "0x" from the hexadecimal output
- return this.faker.datatype.hexadecimal(24).replace('0x', '').toLowerCase();
+ return this.faker.datatype.hexadecimal({ length: 24, case: 'lower' });
}
}