mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-12-28 14:38:52 +00:00
Fix error
This commit is contained in:
parent
88c45f05ac
commit
49c98e902a
@ -7,9 +7,10 @@ use serde::Serialize;
|
||||
use crate::data::user_like::UserLike;
|
||||
|
||||
#[derive(Serialize)]
|
||||
#[allow(non_snake_case)]
|
||||
pub struct UserLikeAPI {
|
||||
id: u64,
|
||||
user_id: u64,
|
||||
userID: u64,
|
||||
time_sent: u64,
|
||||
elem_type: String,
|
||||
elem_id: u64,
|
||||
@ -19,7 +20,7 @@ impl UserLikeAPI {
|
||||
pub fn new(l: &UserLike) -> UserLikeAPI {
|
||||
UserLikeAPI {
|
||||
id: l.id,
|
||||
user_id: l.user_id.id(),
|
||||
userID: l.user_id.id(),
|
||||
time_sent: l.time_sent,
|
||||
elem_type: l.elem_type.clone(),
|
||||
elem_id: l.elem_id,
|
||||
|
Loading…
Reference in New Issue
Block a user