add gravatar to model list

This commit is contained in:
Brandon Thomas committed 2021-08-30 06:04:01 -04:00
1 parent 7877a5505b
commit d5646ebbdb
1 file changed
+4
@@ -32,6 +32,7 @@ pub struct TtsModelRecordForResponse {
pub creator_user_token: String,
pub creator_username: String,
pub creator_display_name: String,
pub creator_gravatar_hash: String,
pub title: String,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
@@ -55,6 +56,7 @@ pub struct TtsModelRecord {
pub creator_user_token: String,
pub creator_username: String,
pub creator_display_name: String,
pub creator_gravatar_hash: String,
pub title: String,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
@@ -91,6 +93,7 @@ SELECT
tts.creator_user_token,
users.username as creator_username,
users.display_name as creator_display_name,
users.email_gravatar_hash as creator_gravatar_hash,
tts.title,
tts.created_at,
tts.updated_at
@@ -130,6 +133,7 @@ WHERE
creator_user_token: model.creator_user_token.clone(),
creator_username: model.creator_username.clone(),
creator_display_name: model.creator_display_name.clone(),
creator_gravatar_hash: model.creator_gravatar_hash.clone(),
title: model.title.clone(),
created_at: model.created_at.clone(),
updated_at: model.updated_at.clone(),