Mirror of https://github.com/roostorg/coop github.com/roostorg/coop
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 557ff54b2b435e5f1e789c6a8a4e1bebf2d7deb6 9 lines 321 B view raw
1import { safeGet } from '../utils/misc.js'; 2 3export function isUniqueConstraintError(error: unknown): boolean { 4 return safeGet(error, ['name']) === 'SequelizeUniqueConstraintError'; 5} 6 7export function isEmptyResultSetError(error: unknown): boolean { 8 return safeGet(error, ['name']) === 'SequelizeEmptyResultError'; 9}