Skip to content

Commit

Permalink
chore: gen id fns
Browse files Browse the repository at this point in the history
  • Loading branch information
mantagen committed Aug 28, 2024
1 parent 02d87a3 commit dc422c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/aila/src/helpers/chat/generateChatId.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { nanoid } from "nanoid";

export function generateChatId() {
return `chat-${nanoid(16)}`;
return `${nanoid(16)}`;
}
2 changes: 1 addition & 1 deletion packages/aila/src/helpers/chat/generateMessageId.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { nanoid } from "nanoid";

export function generateMessageId() {
return `message-${nanoid(16)}`;
return `${nanoid(16)}`;
}

0 comments on commit dc422c0

Please sign in to comment.