diff options
| author | Eric Cheng <[email protected]> | 2022-08-28 09:59:51 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-08-28 15:59:51 +0200 |
| commit | 379ba79ba3b9735ed039d87f32fc14fa9920d4ed (patch) | |
| tree | e2ab2bf145231bafc6aaa73ccfdd0124ee3e3c03 /src/modules/database | |
| parent | f78843edb05913c44ebd86535b0d50d22e99fc5e (diff) | |
| download | faker-379ba79ba3b9735ed039d87f32fc14fa9920d4ed.tar.xz faker-379ba79ba3b9735ed039d87f32fc14fa9920d4ed.zip | |
fix(datatype): unintentional hex breaking change (#1306)
Co-authored-by: Leyla Jähnig <[email protected]>
Diffstat (limited to 'src/modules/database')
| -rw-r--r-- | src/modules/database/index.ts | 6 |
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: '', + }); } } |
