cli + user api

This commit is contained in:
JMARyA 2025-05-02 12:53:28 +02:00
parent 46cf2f4572
commit b010027549
12 changed files with 504 additions and 25 deletions

View file

@ -7,7 +7,7 @@ use owl::{Serialize, get, query};
use rumqttc::AsyncClient;
use sage::PersonaIdentity;
fn is_within_80_seconds(time: chrono::DateTime<chrono::Utc>) -> bool {
pub fn is_within_80_seconds(time: chrono::DateTime<chrono::Utc>) -> bool {
let now = chrono::Utc::now();
now.signed_duration_since(time).num_seconds() <= 80
}