mirror of
https://github.com/n08i40k/schedule-parser-rusted.git
synced 2025-12-06 17:57:47 +03:00
Тесты JWT
Имплементация PartialEq для utils::jwt::VerifyError Замена устаревшего changeset_options на diesel Удалена проверка на ошибку создания токена, так как вероятность её появления близка к нулю
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
use diesel::prelude::*;
|
||||
use diesel::{AsExpression, FromSqlRow};
|
||||
use serde::Serialize;
|
||||
|
||||
#[derive(diesel_derive_enum::DbEnum, Serialize, Debug, Clone, Copy, PartialEq)]
|
||||
@@ -14,7 +13,7 @@ pub enum UserRole {
|
||||
|
||||
#[derive(Identifiable, AsChangeset, Queryable, Selectable, Serialize)]
|
||||
#[diesel(table_name = crate::database::schema::users)]
|
||||
#[changeset_options(treat_none_as_null = "true")]
|
||||
#[diesel(treat_none_as_null = true)]
|
||||
pub struct User {
|
||||
pub id: String,
|
||||
pub username: String,
|
||||
|
||||
Reference in New Issue
Block a user