UNPKG

waibu-db

Version:
11 lines (8 loc) 371 B
import prepCrud from '../../lib/prep-crud.js' async function remove ({ model, req, reply, id, options = {} }) { const { recordRemove } = this.app.dobo const { name, recId, opts } = prepCrud.call(this, { model, req, reply, id, options, args: ['model', 'id'] }) const result = await recordRemove(name, recId, opts) return result } export default remove