Skip to content

Commit

Permalink
fix: remove unused code in organization model
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Jan 9, 2022
1 parent 91442ce commit 02d2ab0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
14 changes: 0 additions & 14 deletions src/controllers/organization.controller.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
import fs from 'fs';
import { Organization } from '../models/organizations';

const loadFileIntoString = (path) => {
return new Promise((resolve, reject) => {
fs.readFile(path, (err, buff) => {
if (err) {
console.error(err);
return;
}
console.log(buff.toString());
resolve(buff.toString());
});
});
};

export const findAll = async (req, res) => {
return res.json({
...(await Organization.getHomeOrg()),
Expand Down
14 changes: 0 additions & 14 deletions src/models/organizations/organizations.model.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,11 @@
'use strict';

import fs from 'fs';
import Sequelize from 'sequelize';
const { Model } = Sequelize;
import { sequelize } from '../database';

import ModelTypes from './organizations.modeltypes.cjs';

const loadFileIntoString = (path) => {
return new Promise((resolve, reject) => {
fs.readFile(path, (err, buff) => {
if (err) {
console.error(err);
return;
}
console.log(buff.toString());
resolve(buff.toString());
});
});
};

class Organization extends Model {
static async getHomeOrg() {
return {
Expand Down

0 comments on commit 02d2ab0

Please sign in to comment.