aboutsummaryrefslogtreecommitdiff
path: root/internal/admin/api_entity.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/admin/api_entity.go')
-rw-r--r--internal/admin/api_entity.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/admin/api_entity.go b/internal/admin/api_entity.go
index b32ab89..204c59e 100644
--- a/internal/admin/api_entity.go
+++ b/internal/admin/api_entity.go
@@ -38,7 +38,8 @@ var (
refresh: func(s *AdminServer) { s.invalidateEntityCaches("drops") }}
mobSpec = entityCRUD{route: "mobs", noun: "mob", searchSubdirs: true,
refresh: func(s *AdminServer) { s.invalidateEntityCaches("mobs") }}
- objectSpec = entityCRUD{route: "objects", noun: "object", searchSubdirs: true}
+ objectSpec = entityCRUD{route: "objects", noun: "object", searchSubdirs: true,
+ refresh: func(s *AdminServer) { s.invalidateEntityCaches("objects") }}
hazardSpec = entityCRUD{route: "hazards", noun: "hazard",
refresh: func(s *AdminServer) { s.world.ClearHazardCache() }}
techSpec = entityCRUD{route: "techs", noun: "tech", searchSubdirs: true, upsert: true, bodyErr: true, okResponse: true}