try {
const userResponse: Models.User<Models.Preferences> = await users.get(id);
const user = JSON.stringify(userResponse);
return res.send(user);
} catch (err) {
log('Appwrite getUser: Error getting user. id: ' + id);
return res.send(err);
}```
Since there is no res.status, what is the best way to send an error to the client? Just res.send it? This will not trigger the try/catch error handling on the client...
thanks 🙂