huridocs/uwazi

View on GitHub
app/api/activitylog/migrationsParser.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { Methods } from 'api/activitylog/activityLogBuilder';

export const typeParsers = {
  fieldParseError: logData => {
    const { title, propertyName, sharedId, migrationName } = logData;

    return {
      action: Methods.Migrate,
      name: `${title} (${sharedId})`,
      extra: 'Must fix manually',
      description: `[${migrationName}] Error parsing property ${propertyName} in`,
    };
  },
};