Skip to content

Commit

Permalink
🐛 fix: fix cant duplicate assistant (lobehub#3242)
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx authored Jul 17, 2024
1 parent 3d7a35d commit 0edc851
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/database/server/models/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,11 @@ export class SessionModel {
const { agent, ...session } = result;
const sessionId = this.genId();

// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { id: _, slug: __, ...config } = agent;

return this.create({
config: agent,
config: config,
id: sessionId,
session: {
...session,
Expand Down

0 comments on commit 0edc851

Please sign in to comment.