Skip to content

Instantly share code, notes, and snippets.

@benbahrenburg
Last active August 29, 2015 14:08
Embed
What would you like to do?
Note Table - Delete Script
function del(id, user, request) {
var table = tables.getTable('notes');
table.where({
id: id, userId : user.userId
}).read({
success: delItems
});
function delItems(items) {
if (items.length > 0) {
request.execute();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment