refs #5509 feat(EntryDms): add download & upload file

This commit is contained in:
Alex Moreno 2024-02-08 07:23:42 +01:00
parent db75ad4727
commit b54827a2ad
3 changed files with 9 additions and 1 deletions

View File

@ -2,6 +2,9 @@
"Entry": {
"dataSource": "vn"
},
"EntryDms": {
"dataSource": "vn"
},
"EntryContainer": {
"dataSource": "entryStorage"
},

View File

@ -2,6 +2,8 @@ const UserError = require('vn-loopback/util/user-error');
module.exports = Self => {
require('../methods/entry-dms/removeFile')(Self);
require('../methods/entry-dms/downloadFile')(Self);
require('../methods/entry-dms/uploadFile')(Self);
Self.rewriteDbError(function(err) {
if (err.code === 'ER_DUP_ENTRY')

View File

@ -1,6 +1,9 @@
{
"name": "EntryDms",
"base": "Loggable",
"base": "VnModel",
"mixins": {
"Loggable": true
},
"options": {
"mysql": {
"table": "entryDms"