summaryrefslogtreecommitdiff
path: root/app/server/db/models.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-06-26 16:32:40 +0200
committerJules Laplace <julescarbon@gmail.com>2018-06-26 16:32:40 +0200
commitf8d41404a5c64fc63e7a3f52865d61ab68d80ebb (patch)
treebb5d9d7ac5f7a775984a28a94e86b2738daa79e7 /app/server/db/models.js
parent912e3b094d7214f3bcbf3992d60e49a965c580b2 (diff)
wah
Diffstat (limited to 'app/server/db/models.js')
-rw-r--r--app/server/db/models.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/app/server/db/models.js b/app/server/db/models.js
index 548f0c5..24be774 100644
--- a/app/server/db/models.js
+++ b/app/server/db/models.js
@@ -42,15 +42,9 @@ module.exports = {
}),
file: model('file', File, {
fields: "folder_id username name url mime datatype duration analysis size stars activity module checkpoint dataset epoch processed generated opt created_at updated_at".split(" "),
- afterCreate: (file, should_relay) => {
+ afterCreate: (file) => {
console.log('created file')
// bridge.processFiles()
- console.log(should_relay)
- if (should_relay) { // if this came from an automated command...
- const client = require('../bridge').client
- client.emit('api_res', { type: 'create', datatype: 'file', data: file.toJSON() })
- console.log("RELAYINED")
- }
}
}),
task: model('task', Task, {