I have a supply table with name and quantity columns. I would expect the following code to update the quantity but it does not. Can someone correct my code please?
const repository = connection.getRepository('supply');
await repository.update({ quantity: 20 }, { name: 'supply1' });