fix: refs #6276 desestructuring
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jorge Penadés 2024-02-23 13:02:56 +01:00
parent 70c400c5f9
commit 7fdfd4fcb4
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ module.exports = Self => {
if (typeof options == 'object')
Object.assign(myOptions, options);
const [info, okPacket, {collectionFk}] = await Self.rawSql('CALL vn.collection_assign(?, @vCollectionFk); SELECT @vCollectionFk collectionFk',
const [,, {collectionFk}] = await Self.rawSql('CALL vn.collection_assign(?, @vCollectionFk); SELECT @vCollectionFk collectionFk',
[userId], myOptions);
if (!collectionFk) throw new UserError('There are not picking tickets');