From 30b7acdaba71432f283887dc6cee7c1c80dc7b34 Mon Sep 17 00:00:00 2001 From: Lee Smet Date: Thu, 21 Aug 2025 14:07:48 +0200 Subject: [PATCH] Fix some quirks Signed-off-by: Lee Smet --- specs/openrpc.json | 2 +- src/models/context.rs | 2 +- src/models/runner.rs | 2 +- src/storage/redis.rs | 1 - 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/specs/openrpc.json b/specs/openrpc.json index 367dffd..fdf6903 100644 --- a/specs/openrpc.json +++ b/specs/openrpc.json @@ -3,7 +3,7 @@ "info": { "title": "HeroCoordinator JSON-RPC API", "version": "0.1.0", - "description": "JSON-RPC API over HTTP and WebSocket for creating and loading domain models. Timestamps created_at/updated_at are set by the system. Known model quirks are kept as-is and documented here: Context uses 'upddated_at' (typo) instead of 'updated_at'; Runner uses 'crated_at' instead of 'created_at'; Message uses ScriptType as 'message_type'. Host and ports are configurable via CLI flags." + "description": "JSON-RPC API over HTTP and WebSocket for creating and loading domain models. Host and ports are configurable via CLI flags." }, "servers": [ { diff --git a/src/models/context.rs b/src/models/context.rs index 9de663c..a1de1e2 100644 --- a/src/models/context.rs +++ b/src/models/context.rs @@ -13,5 +13,5 @@ pub struct Context { /// Actor ids which can execute jobs in this context executors: Vec, created_at: Timestamp, - upddated_at: Timestamp, + updated_at: Timestamp, } diff --git a/src/models/runner.rs b/src/models/runner.rs index 8fc0375..d9e0edc 100644 --- a/src/models/runner.rs +++ b/src/models/runner.rs @@ -15,7 +15,7 @@ pub struct Runner { topic: String, /// If this is true, the runner also listens on a local redis queue local: bool, - crated_at: Timestamp, + created_at: Timestamp, updated_at: Timestamp, } diff --git a/src/storage/redis.rs b/src/storage/redis.rs index 708a90f..aaa07c8 100644 --- a/src/storage/redis.rs +++ b/src/storage/redis.rs @@ -275,4 +275,3 @@ impl RedisDriver { self.hget_model(db, &key).await } } -