« get me outta code hell

data: ContentEntry: accessKind needs accessDate, default 'accessed' - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-06-10 09:57:38 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-06-10 09:57:38 -0300
commite21e38b0ace1beb9c31a28584624717a289d7ef5 (patch)
tree757e99a2fd2a8d7c1a0f21e82c01f0044d43a34a
parent825606760247aa2a5d6fd08f5e66bf763248a85b (diff)
data: ContentEntry: accessKind needs accessDate, default 'accessed'
-rw-r--r--src/data/things/content.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/data/things/content.js b/src/data/things/content.js
index e380780c..ca41ccaa 100644
--- a/src/data/things/content.js
+++ b/src/data/things/content.js
@@ -50,6 +50,10 @@ export class ContentEntry extends Thing {
     },
 
     accessKind: [
+      exitWithoutDependency({
+        dependency: 'accessDate',
+      }),
+
       exposeUpdateValueOrContinue({
         validate: input.value(
           is(...[
@@ -73,7 +77,7 @@ export class ContentEntry extends Thing {
       },
 
       exposeConstant({
-        value: input.value(null),
+        value: input.value('accessed'),
       }),
     ],