// Update manager - Raf export async function updateVesselManagerInDB(imo: string, managerId: number) { return new Promise<void>((resolve, reject) => { rdsConnection.query( `UPDATE spotship_vessel SET manager_id = ? WHERE imo = ?`, [managerId, imo], (error: unknown) => { if (error) { return reject(error); } return resolve(); } ); }); }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter