mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix(avatars): use correct timestamp type
This commit is contained in:
parent
8f664dc54d
commit
5466e5051b
1 changed files with 5 additions and 2 deletions
|
|
@ -1,5 +1,8 @@
|
|||
use serde::{Deserialize, Serialize};
|
||||
use sqlx::{types::chrono::NaiveDateTime, FromRow};
|
||||
use sqlx::{
|
||||
types::chrono::{DateTime, Utc},
|
||||
FromRow,
|
||||
};
|
||||
use uuid::Uuid;
|
||||
|
||||
#[derive(FromRow)]
|
||||
|
|
@ -11,7 +14,7 @@ pub struct ImageMeta {
|
|||
pub file_size: i32,
|
||||
pub width: i32,
|
||||
pub height: i32,
|
||||
pub uploaded_at: Option<NaiveDateTime>,
|
||||
pub uploaded_at: Option<DateTime<Utc>>,
|
||||
|
||||
pub original_url: Option<String>,
|
||||
pub original_attachment_id: Option<i64>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue