init
This commit is contained in:
@@ -137,6 +137,7 @@ pub async fn create(
|
||||
id: Set(id),
|
||||
server_id: Set(server_id),
|
||||
name: Set(String::new()),
|
||||
supports_skin_tone: Set(false),
|
||||
emoji_type: Set(emoji_type),
|
||||
unicode_sequence: Set(unicode_sequence),
|
||||
file_path: Set(path),
|
||||
|
||||
@@ -7,6 +7,7 @@ pub fn response(model: emoji::Model) -> EmojiResponse {
|
||||
emoji_type: model.emoji_type,
|
||||
unicode_sequence: model.unicode_sequence,
|
||||
name: model.name,
|
||||
supports_skin_tone: model.supports_skin_tone,
|
||||
asset_url: model
|
||||
.file_path
|
||||
.as_ref()
|
||||
|
||||
Reference in New Issue
Block a user