Added grey hair color, removed console log.
This commit is contained in:
parent
c29ecac41c
commit
dab38c8013
|
@ -47,6 +47,8 @@ const hairColors = {
|
||||||
bruin: 'brown',
|
bruin: 'brown',
|
||||||
brunette: 'brown',
|
brunette: 'brown',
|
||||||
fair: 'blonde',
|
fair: 'blonde',
|
||||||
|
grey: 'gray',
|
||||||
|
gray: 'gray',
|
||||||
raven: 'black',
|
raven: 'black',
|
||||||
red: 'red',
|
red: 'red',
|
||||||
redhead: 'red',
|
redhead: 'red',
|
||||||
|
|
|
@ -238,8 +238,6 @@ async function fetchEntitiesBySlug(entitySlugs, prefer = 'channel') {
|
||||||
sort: knex.raw(prefer === 'channel' ? 'asc' : 'desc'),
|
sort: knex.raw(prefer === 'channel' ? 'asc' : 'desc'),
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(entities.rows);
|
|
||||||
|
|
||||||
// channel entity will overwrite network entity
|
// channel entity will overwrite network entity
|
||||||
const entitiesBySlug = entities.rows.reduce((accEntities, { entity }) => {
|
const entitiesBySlug = entities.rows.reduce((accEntities, { entity }) => {
|
||||||
const host = urlToHostname(entity.url);
|
const host = urlToHostname(entity.url);
|
||||||
|
|
Loading…
Reference in New Issue