• R/O
  • HTTP
  • SSH
  • HTTPS

zephyr: Commit

This repository is for zephyr, which is implemented for a GUI of Eos.


Commit MetaInfo

Revision7cfd899dc2aef2b8a6b19bc0be04b7340128a51b (tree)
Time2016-01-23 17:17:29
Authorhimetani_cafe <fumifumi@yasu...>
Commiterhimetani_cafe

Log Message

[Bugfix] checkFile() adding "fileType: 1" to inner query.

Change Summary

Incremental Difference

--- a/server/class/DB.js
+++ b/server/class/DB.js
@@ -68,7 +68,7 @@ function DB() {
6868 var q = {
6969 where: {
7070 name: parentDirectory,
71- fileType: 0
71+ fileType: 0
7272 }
7373 };
7474 Files.findOne(q)
@@ -82,7 +82,7 @@ function DB() {
8282 fileId: uuid.v1(),
8383 name: fileName,
8484 parentDirectory: parentDirectory,
85- fileType: 0
85+ fileType: 1
8686 }
8787 return Files.create(q)
8888 })
@@ -107,7 +107,8 @@ function DB() {
107107 var q = {
108108 where: {
109109 name: fileName,
110- parentDirectory: parentDirectory
110+ parentDirectory: parentDirectory,
111+ fileType: 1
111112 }
112113 };
113114 Files.findOne(q)
@@ -120,6 +121,10 @@ function DB() {
120121 });
121122 });
122123 }
124+
125+ function checkDirectory(directory) {
126+ }
127+
123128 /**
124129 *
125130 * @constructor
Show on old repository browser