Skip to content

Commit 8665ebb

Browse files
committed
fix: type error
1 parent 2a25d47 commit 8665ebb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/server/services/url-pattern.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { factories, Schema, UID } from '@strapi/strapi';
1+
import { factories, Modules, Schema, UID } from '@strapi/strapi';
22
import deburr from 'lodash/deburr';
33
import toLower from 'lodash/toLower';
44
import kebabCase from 'lodash/kebabCase';
@@ -148,7 +148,7 @@ const customServices = () => ({
148148
*/
149149
resolvePattern: (
150150
uid: UID.ContentType,
151-
entity: { [key: string]: string | number | Date },
151+
entity: { [key: string]: any },
152152
urlPattern?: string,
153153
): string => {
154154
const resolve = (pattern: string) => {

0 commit comments

Comments
 (0)