We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba68340 commit 25c1042Copy full SHA for 25c1042
1 file changed
packages/core/src/v3/isomorphic/friendlyId.ts
@@ -21,6 +21,10 @@ export function toFriendlyId(entityName: string, internalId: string): string {
21
throw new Error("Internal ID cannot be empty");
22
}
23
24
+ if (internalId.startsWith(`${entityName}_`)) {
25
+ return internalId;
26
+ }
27
+
28
return `${entityName}_${internalId}`;
29
30
0 commit comments