-
Notifications
You must be signed in to change notification settings - Fork 2
feat(dashboard): add WYSIWYG Discord markdown editor component #422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
808f372
b674b1a
9ae6f82
2f8d19b
905a499
5f0ee43
21acdd8
0ee55d7
cdd50a3
f6220b7
a3eb5e8
dd8a279
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -221,7 +221,7 @@ function hydrateHistory(channelId) { | |
| const limit = getHistoryLength(); | ||
| const hydrationPromise = pool | ||
| .query( | ||
| `SELECT role, content FROM conversations | ||
| `SELECT role, content, created_at FROM conversations | ||
| WHERE channel_id = $1 | ||
| ORDER BY created_at DESC | ||
| LIMIT $2`, | ||
|
|
@@ -232,6 +232,7 @@ function hydrateHistory(channelId) { | |
| const dbHistory = rows.reverse().map((row) => ({ | ||
| role: row.role, | ||
| content: row.content, | ||
| timestamp: row.created_at ? new Date(row.created_at).getTime() : Date.now(), | ||
| })); | ||
|
|
||
| // Merge DB history with any messages added while hydration was in-flight. | ||
|
|
@@ -373,6 +374,7 @@ export async function initConversationHistory() { | |
| hydratedByChannel.get(channelId).push({ | ||
| role: row.role, | ||
| content: row.content, | ||
| timestamp: row.created_at ? new Date(row.created_at).getTime() : Date.now(), | ||
| }); | ||
|
Comment on lines
374
to
378
|
||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.