diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-09-07 12:06:06 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-09-07 12:07:03 -0300 |
commit | 6889c764caef5542ba9ad8362acf6e8b7b879ea9 (patch) | |
tree | a89bb9a9bd9884ffd1c51e4926a04469618f73b3 /src/data/things/artist.js | |
parent | 8b379954c9d74f0d47ac32ef395627353940c728 (diff) |
data, infra: import validators directly
Diffstat (limited to 'src/data/things/artist.js')
-rw-r--r-- | src/data/things/artist.js | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/data/things/artist.js b/src/data/things/artist.js index b238305..93a1b51 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'), |