aboutsummaryrefslogtreecommitdiff
path: root/src/modules/database
diff options
context:
space:
mode:
authorLeyla Jähnig <[email protected]>2022-10-18 19:29:43 +0200
committerGitHub <[email protected]>2022-10-18 19:29:43 +0200
commit79858fea203bce7ada9e9bcc7751f6ab25123977 (patch)
tree440e365a55814763662392fca10c899acfa2c468 /src/modules/database
parentc977dbc79da0589557205ad2a95befa1cd6a9dea (diff)
downloadfaker-79858fea203bce7ada9e9bcc7751f6ab25123977.tar.xz
faker-79858fea203bce7ada9e9bcc7751f6ab25123977.zip
feat(string): move methods to new module (#1155)
Co-authored-by: Eric Cheng <[email protected]> Co-authored-by: ST-DDT <[email protected]> Co-authored-by: Shinigami92 <[email protected]>
Diffstat (limited to 'src/modules/database')
-rw-r--r--src/modules/database/index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/database/index.ts b/src/modules/database/index.ts
index 8a4291f9..d0985c53 100644
--- a/src/modules/database/index.ts
+++ b/src/modules/database/index.ts
@@ -79,9 +79,9 @@ export class DatabaseModule {
* @since 6.2.0
*/
mongodbObjectId(): string {
- return this.faker.datatype.hexadecimal({
+ return this.faker.string.hexadecimal({
length: 24,
- case: 'lower',
+ casing: 'lower',
prefix: '',
});
}