Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

Commit

Permalink
Update utils.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
soyombo-baterdene committed Sep 29, 2023
1 parent 802c85a commit 9521721
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/plugin-xyp-api/src/models/definitions/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as Random from 'meteor-random';
import { nanoid } from 'nanoid';

/*
* Mongoose field options wrapper
Expand All @@ -13,7 +13,7 @@ export const field = options => {
// TODO: remove
if (pkey) {
options.type = String;
options.default = () => Random.id();
options.default = () => nanoid();
}

return options;
Expand Down

0 comments on commit 9521721

Please sign in to comment.