UNPKG

scrivito

Version:

Scrivito is a professional, yet easy to use SaaS Enterprise Content Management Service, built for digital agencies and medium to large businesses. It is completely maintenance-free, cost-effective, and has unprecedented performance and security.

18 lines (14 loc) 397 B
import { ScopeTransformation } from 'scrivito_sdk/models/obj_scope'; export const excludeDeletedObjs: ScopeTransformation = { isInScope(obj) { return !obj.isDeleted(); }, applyToSearch(search) { return search.excludeDeleted(); }, applyToCreate(attributes) { // a newly created obj is not deleted, by definition. // => nothing to do here return attributes; }, };