Skip to content

Commit

Permalink
fix: require utils
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomin.jin committed Oct 25, 2022
1 parent e528480 commit ab69a7c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/compass/src/modules/users/users.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
ResponseException,
SessionCompass,
} from '@common';
import { useMd5EncodeContent } from '@compass-aiden/utils'
const { useMd5EncodeContent } = require('@compass-aiden/utils/dist/main.cjs')
import { format } from 'date-fns';
import { JwtService } from '@nestjs/jwt';
import { AuthGuard } from '@nestjs/passport';
Expand Down
2 changes: 1 addition & 1 deletion apps/compass/src/modules/users/users.service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Injectable } from '@nestjs/common';
import { DbService } from '@libs/db';
import { encodePhoneNumber, useMd5EncodeContent } from '@compass-aiden/utils'
const { encodePhoneNumber, useMd5EncodeContent } = require('@compass-aiden/utils/dist/main.cjs')
import { format } from 'date-fns';
import { PaginationResponse, wrapPaginationQuery } from '@common';
import { uniq } from 'lodash';
Expand Down
2 changes: 1 addition & 1 deletion common/decorators/authorization.decorator.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { SetMetadata } from '@nestjs/common';
import {AuthorizationOptions, PermissionsEnum} from "@common";
import { toArray } from '@compass-aiden/utils'
const { toArray } = require('@compass-aiden/utils/dist/main.cjs')
/**
* @description 设置许可权限
* @param permissions 权限key或keys
Expand Down

0 comments on commit ab69a7c

Please sign in to comment.