Fix some quirks

Signed-off-by: Lee Smet <lee.smet@hotmail.com>
This commit is contained in:
Lee Smet
2025-08-21 14:07:48 +02:00
parent 9482a4e3ee
commit 30b7acdaba
4 changed files with 3 additions and 4 deletions

View File

@@ -3,7 +3,7 @@
"info": { "info": {
"title": "HeroCoordinator JSON-RPC API", "title": "HeroCoordinator JSON-RPC API",
"version": "0.1.0", "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": [ "servers": [
{ {

View File

@@ -13,5 +13,5 @@ pub struct Context {
/// Actor ids which can execute jobs in this context /// Actor ids which can execute jobs in this context
executors: Vec<u32>, executors: Vec<u32>,
created_at: Timestamp, created_at: Timestamp,
upddated_at: Timestamp, updated_at: Timestamp,
} }

View File

@@ -15,7 +15,7 @@ pub struct Runner {
topic: String, topic: String,
/// If this is true, the runner also listens on a local redis queue /// If this is true, the runner also listens on a local redis queue
local: bool, local: bool,
crated_at: Timestamp, created_at: Timestamp,
updated_at: Timestamp, updated_at: Timestamp,
} }

View File

@@ -275,4 +275,3 @@ impl RedisDriver {
self.hget_model(db, &key).await self.hget_model(db, &key).await
} }
} }