Refactoring client to reflect database changes.
This commit is contained in:
@@ -1544,7 +1544,7 @@ function getTagAliases(tagsMap) {
|
||||
exports.seed = knex => Promise.resolve()
|
||||
.then(async () => upsert('tags_groups', groups, 'slug', knex))
|
||||
.then(async () => {
|
||||
const groupEntries = knex('tags').select('*');
|
||||
const groupEntries = await knex('tags_groups').select('*');
|
||||
const groupsMap = groupEntries.reduce((acc, { id, slug }) => ({ ...acc, [slug]: id }), {});
|
||||
|
||||
const tags = getTags(groupsMap);
|
||||
|
||||
@@ -11,6 +11,11 @@ const tagPosters = [
|
||||
tagSlug: 'anal',
|
||||
comment: '',
|
||||
},
|
||||
{
|
||||
path: 'tags/da-tp/0.jpeg',
|
||||
tagSlug: 'da-tp',
|
||||
comment: 'Natasha Teen in LegalPorno SZ2164',
|
||||
},
|
||||
{
|
||||
path: 'tags/double-penetration/poster.jpeg',
|
||||
tagSlug: 'double-penetration',
|
||||
@@ -26,6 +31,11 @@ const tagPosters = [
|
||||
tagSlug: 'double-vaginal',
|
||||
comment: '',
|
||||
},
|
||||
{
|
||||
path: 'tags/dv-tp/poster.jpeg',
|
||||
tagSlug: 'dv-tp',
|
||||
comment: 'Juelz Ventura in "Gangbanged 5" for Elegant Angel',
|
||||
},
|
||||
{
|
||||
path: 'tags/tattoo/poster.jpeg',
|
||||
tagSlug: 'tattoo',
|
||||
@@ -141,11 +151,6 @@ const tagPhotos = [
|
||||
tagSlug: 'airtight',
|
||||
comment: 'Sheena Shaw in "Ass Worship 14" for Jules Jordan',
|
||||
},
|
||||
{
|
||||
path: 'tags/da-tp/0.jpeg',
|
||||
tagSlug: 'da-tp',
|
||||
comment: 'Natasha Teen in LegalPorno SZ2164',
|
||||
},
|
||||
{
|
||||
path: 'tags/da-tp/3.jpeg',
|
||||
tagSlug: 'da-tp',
|
||||
@@ -166,11 +171,6 @@ const tagPhotos = [
|
||||
tagSlug: 'da-tp',
|
||||
comment: 'Ninel Mojado aka Mira Cuckold in GIO063 for LegalPorno',
|
||||
},
|
||||
{
|
||||
path: 'tags/dv-tp/poster.jpeg',
|
||||
tagSlug: 'dv-tp',
|
||||
comment: 'Juelz Ventura in "Gangbanged 5" for Elegant Angel',
|
||||
},
|
||||
{
|
||||
path: 'tags/dv-tp/0.jpeg',
|
||||
tagSlug: 'dv-tp',
|
||||
|
||||
Reference in New Issue
Block a user