huridocs/uwazi

View on GitHub
app/api/services/preserve/preserveSyncModel.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import mongoose from 'mongoose';

import { instanceModel } from 'api/odm';

const preserveSyncSchema = new mongoose.Schema({
  lastImport: String,
  token: String,
});

const preserveSyncModel = instanceModel('preserveSync', preserveSyncSchema);

export { preserveSyncModel };