|
|
@@ -355,8 +355,8 @@ module.exports = class ProfileService extends Schmervice.Service {
|
|
355
|
355
|
await this._setTagLookup()
|
|
356
|
356
|
let associations = groupingId
|
|
357
|
357
|
? await TagAssociation.query()
|
|
358
|
|
- .where('grouping_id', groupingId)
|
|
359
|
|
- .andWhere('profile_id', profileId)
|
|
|
358
|
+ .where('grouping_id', groupingId)
|
|
|
359
|
+ .andWhere('profile_id', profileId)
|
|
360
|
360
|
: await TagAssociation.query().andWhere('profile_id', profileId)
|
|
361
|
361
|
return associations
|
|
362
|
362
|
.map(assoc => ({
|
|
|
@@ -388,7 +388,7 @@ module.exports = class ProfileService extends Schmervice.Service {
|
|
388
|
388
|
await TagAssociation.query().insert(association)
|
|
389
|
389
|
return await this.getTagsFor(association.profile_id)
|
|
390
|
390
|
} else {
|
|
391
|
|
- return console.error('tag association already exists')
|
|
|
391
|
+ return console.error('ERROR =>: tag association already exists')
|
|
392
|
392
|
}
|
|
393
|
393
|
}
|
|
394
|
394
|
}
|