Skip to content

Commit 539d2b2

Browse files
authored
Merge pull request elizaOS#785 from tomguluson92/main
fixs: uuid compatible for number
2 parents 5bc6214 + 942271a commit 539d2b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/uuid.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { sha1 } from "js-sha1";
22
import { UUID } from "./types.ts";
33

4-
export function stringToUuid(target: string): UUID {
4+
export function stringToUuid(target: string | number): UUID {
55
if (typeof target === "number") {
66
target = (target as number).toString();
77
}

0 commit comments

Comments
 (0)