327 B
327 B
const sdk = require('node-appwrite');
// Init SDK let client = new sdk.Client();
let users = new sdk.Users(client);
client .setProject('') .setKey('') ;
let promise = users.updatePrefs('[USER_ID]', {});
promise.then(function (response) { console.log(response); }, function (error) { console.log(error); });