mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
match query to registry table
This commit is contained in:
@@ -145,10 +145,10 @@ pub async fn get_version(
|
|||||||
arch,
|
arch,
|
||||||
}: GetVersionParams,
|
}: GetVersionParams,
|
||||||
) -> Result<BTreeMap<VersionString, OsVersionInfo>, Error> {
|
) -> Result<BTreeMap<VersionString, OsVersionInfo>, Error> {
|
||||||
if let (Some(pool), Some(server_id), Some(arch)) = (ctx.pool, server_id, arch) {
|
if let (Some(pool), Some(server_id), Some(arch)) = (&ctx.pool, server_id, arch) {
|
||||||
let created_at = Utc::now().to_rfc3339();
|
let created_at = Utc::now();
|
||||||
|
|
||||||
query!("INSERT INTO user_activity (created_at, server_id, os_version, arch) VALUES ($1, $2, $3, $4)",
|
query!("INSERT INTO user_activity (created_at, server_id, arch) VALUES ($1, $2, $3)",
|
||||||
created_at,
|
created_at,
|
||||||
server_id,
|
server_id,
|
||||||
arch
|
arch
|
||||||
|
|||||||
Reference in New Issue
Block a user