u
This commit is contained in:
@@ -13,7 +13,7 @@ export default function listByAttributeId(provider) {
|
||||
* @param {number} googleAuthId - The id of the Google auth user.
|
||||
* @param {number} attributeId - The attribute id.
|
||||
* @param {object} [tx] - Optional transaction.
|
||||
* @returns {Promise<Array<{id: number, attributeId: number, value: string, sort: number}>>}
|
||||
* @returns {Promise<Array<{id: number, attributeId: number, value: string, sort: number, articleCount: number}>>}
|
||||
*/
|
||||
return async (googleAuthId, attributeId, tx) => {
|
||||
if (!attributeId || !Number.isInteger(Number(attributeId))) {
|
||||
@@ -29,6 +29,7 @@ export default function listByAttributeId(provider) {
|
||||
attributeId: row.attributeId,
|
||||
value: row.value,
|
||||
sort: row.sort,
|
||||
articleCount: Number(row.articleCount ?? 0),
|
||||
}));
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user