Skip to content

Commit

Permalink
fix(database): set channel ids for new server object
Browse files Browse the repository at this point in the history
  • Loading branch information
insertish committed Nov 20, 2023
1 parent 196a856 commit aed8f69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/core/database/src/models/servers/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ impl Server {
vec![]
};

server.channels = channels.iter().map(|c| c.id()).collect();
db.insert_server(&server).await?;
Ok((server, channels))
}
Expand Down

0 comments on commit aed8f69

Please sign in to comment.