aboutsummaryrefslogtreecommitdiff
path: root/src/modules/database
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/database')
-rw-r--r--src/modules/database/index.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/database/index.ts b/src/modules/database/index.ts
index 5887ab09..69e07315 100644
--- a/src/modules/database/index.ts
+++ b/src/modules/database/index.ts
@@ -69,6 +69,10 @@ export class Database {
* faker.database.mongodbObjectId() // 'e175cac316a79afdd0ad3afb'
*/
mongodbObjectId(): string {
- return this.faker.datatype.hexadecimal({ length: 24, case: 'lower' });
+ return this.faker.datatype.hexadecimal({
+ length: 24,
+ case: 'lower',
+ prefix: '',
+ });
}
}