« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things/artist.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/data/things/artist.js')
-rw-r--r--src/data/things/artist.js12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/data/things/artist.js b/src/data/things/artist.js
index b2383057..93a1b51b 100644
--- a/src/data/things/artist.js
+++ b/src/data/things/artist.js
@@ -1,20 +1,12 @@
 import find from '#find';
+import {isName, validateArrayItems} from '#validators';
 
 import Thing from './thing.js';
 
 export class Artist extends Thing {
   static [Thing.referenceType] = 'artist';
 
-  static [Thing.getPropertyDescriptors] = ({
-    Album,
-    Flash,
-    Track,
-
-    validators: {
-      isName,
-      validateArrayItems,
-    },
-  }) => ({
+  static [Thing.getPropertyDescriptors] = ({Album, Flash, Track}) => ({
     // Update & expose
 
     name: Thing.common.name('Unnamed Artist'),