Przeglądaj źródła

Merge branch 'polishing' of github.com:Musare/MusareNode into polishing

Jonathan 4 lat temu
rodzic
commit
22c9c18671
2 zmienionych plików z 4 dodań i 4 usunięć
  1. 3 3
      backend/core.js
  2. 1 1
      backend/logic/songs.js

+ 3 - 3
backend/core.js

@@ -139,8 +139,8 @@ export default class CoreClass {
 
 		_arguments.splice(0, 1);
 		const start = `|${this.name.toUpperCase()}|`;
-		const numberOfTabsNeeded = 4 - Math.ceil(start.length / 8);
-		_arguments.unshift(`${start}${Array(numberOfTabsNeeded).join("\t")}`);
+		const numberOfSpacesNeeded = 20 - start.length;
+		_arguments.unshift(`${start}${Array(numberOfSpacesNeeded).join(" ")}`);
 
 		if (type === "INFO") {
 			_arguments[0] += "\x1b[36m";
@@ -199,7 +199,7 @@ export default class CoreClass {
 			this.moduleManager.debugJobs.all.push(job);
 		}
 
-		if (options.bypassQueue) this._runJob(job, options, () => {});
+		if (options.bypassQueue) this._runJob(job, options, () => { });
 		else {
 			const priority = this.priorities[name] ? this.priorities[name] : 10;
 			this.jobQueue.push({ job, options }, priority);

+ 1 - 1
backend/logic/songs.js

@@ -22,7 +22,7 @@ class SongsModule extends CoreClass {
 		this.utils = this.moduleManager.modules.utils;
 
 		const songModel = await this.db.runJob("GET_MODEL", { modelName: "song" });
-		const songSchema = await this.db.runJob("GET_SCHEMA", { schemaName: "song" });
+		const songSchema = await this.cache.runJob("GET_SCHEMA", { schemaName: "song" });
 
 		this.setStage(2);