Skip to content

Commit

Permalink
removed old index, set type for router, added command for Heroku deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
tima101 committed Nov 13, 2018
1 parent 2353b9f commit 11f62f5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions api/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ node_modules/
.coverage
.env
now.json
.note

compiled/
production-server/
Expand Down
1 change: 1 addition & 0 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"scripts": {
"dev": "nodemon server/app.ts",
"build": "rm -rf production-server/ && tsc --project tsconfig.json",
"postinstall": "rm -rf production-server/ && tsc --project tsconfig.json",
"start": "NODE_ENV=production node production-server/app.js",
"now": "now && now alias",
"now-rm": "now rm saas-api --safe --yes",
Expand Down
2 changes: 0 additions & 2 deletions api/server/models/Discussion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ const mongoSchema = new mongoose.Schema({
},
});

mongoSchema.index({ name: 'text' });

interface IDiscussionDocument extends mongoose.Document {
createdUserId: string;
teamId: string;
Expand Down
4 changes: 2 additions & 2 deletions app/components/common/MenuWithLinks.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import Avatar from '@material-ui/core/Avatar';
import Menu from '@material-ui/core/Menu';
import MenuItem from '@material-ui/core/MenuItem';
import { withRouter } from 'next/router';
import { SingletonRouter, withRouter } from 'next/router';
import Router from 'next/router';
import React from 'react';

class MenuWithLinks extends React.PureComponent<{
src?: string;
alt?: string;
options: any[];
router: any;
router: SingletonRouter;
}> {
public state = {
anchorEl: null,
Expand Down
1 change: 1 addition & 0 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"scripts": {
"dev": "nodemon server/app.ts",
"build": "next build && tsc --project tsconfig.server.json",
"postinstall": "next build && rm -rf production-server/ && tsc --project tsconfig.server.json",
"start": "NODE_ENV=production node production-server/server/app.js",
"now": "now && now alias",
"now-rm": "now rm saas-app --safe --yes",
Expand Down

0 comments on commit 11f62f5

Please sign in to comment.