Es6 promise what should I do if all catch success have callbacks?

for example, when I transfer an api successfully, I have two callbacks. When the logic fails, there are also two callbacks. At this time, how to use promise to solve the callback?


promise.catch(() => {
    console.log('1')
})
promise.catch(() => {
    console.log('2')
})
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b35ae6-2b806.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b35ae6-2b806.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?