Skip to content

Commit

Permalink
Debug-log deleted records to console
Browse files Browse the repository at this point in the history
  • Loading branch information
danopia committed Feb 24, 2019
1 parent 42b7168 commit f1b434a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/schema-helpers/delete-record.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ DB.Record.extend helpers:
delete: (cb) -> if confirm "Really delete #{@type} #{@_id}?"
if Meteor.isClient
console.log 'Deleting record version', @version,
'of', @type, @_id, ':', JSON.stringify(@raw())

# TODO: validate locally
'of', @type, @_id
console.debug 'Doc:', JSON.stringify(@raw())

# Only use callbacks on the client
cb2 = if alert? then (err, res) =>
Expand Down

0 comments on commit f1b434a

Please sign in to comment.