mirror of
https://github.com/strapi/strapi.git
synced 2025-07-20 07:27:06 +00:00
7 lines
212 B
JavaScript
7 lines
212 B
JavaScript
![]() |
'use strict';
|
||
|
|
||
|
const { omit } = require('lodash/fp');
|
||
|
const { getNonWritableAttributes } = require('strapi-utils').contentTypes;
|
||
|
|
||
|
module.exports = model => omit(getNonWritableAttributes(strapi.getModel(model)));
|