def confirm(invoiceId): result = Model.update(invoiceId=invoiceId, confirmed=True) return Schema().dump(result).data
def confirm(invoiceId): result = Model.update(invoiceId=invoiceId, confirmed=True) db.session.commit() return Schema().dump(result).data