Skip to content

Commit 4c91fed

Browse files
committed
Works with DB on cloud
1 parent fb2f6e8 commit 4c91fed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+188
-104
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ db.on('error', (error) => console.error(error))
1010
db.once('open', () => console.log('Connected to Database'))
1111
app.use(cors());
1212
app.use("/", router);
13-
//db.connection
13+
db.connection
1414
app.listen(PORT|| process.env.PORT,()=>console.log("running on " + PORT));

models.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {mongoose} from "mongoose"
1+
import mongoose from 'mongoose'
22

33
var Schema = mongoose.Schema;
44

@@ -14,6 +14,7 @@ var TimeTableSchema = new Schema({
1414
}
1515
],
1616

17-
}, {timestamps: true});
17+
}, {timestamps: true})
1818

19-
export default mongoose.model("timetable", TimeTableSchema)
19+
const TimeTable = new mongoose.model("TimeTable", TimeTableSchema)
20+
export default TimeTable;

node_modules/@types/node/LICENSE

100644100755
File mode changed.

node_modules/@types/node/README.md

100644100755
+16-16

node_modules/@types/node/assert.d.ts

100644100755
File mode changed.

node_modules/@types/node/assert/strict.d.ts

100644100755
File mode changed.

node_modules/@types/node/async_hooks.d.ts

100644100755
File mode changed.

node_modules/@types/node/buffer.d.ts

100644100755
File mode changed.

node_modules/@types/node/child_process.d.ts

100644100755
File mode changed.

node_modules/@types/node/cluster.d.ts

100644100755
File mode changed.

node_modules/@types/node/console.d.ts

100644100755
File mode changed.

node_modules/@types/node/constants.d.ts

100644100755
File mode changed.

node_modules/@types/node/crypto.d.ts

100644100755
File mode changed.

node_modules/@types/node/dgram.d.ts

100644100755
File mode changed.

node_modules/@types/node/diagnostics_channel.d.ts

100644100755
File mode changed.

node_modules/@types/node/dns.d.ts

100644100755
File mode changed.

node_modules/@types/node/dns/promises.d.ts

100644100755
File mode changed.

node_modules/@types/node/domain.d.ts

100644100755
File mode changed.

node_modules/@types/node/events.d.ts

100644100755
File mode changed.

node_modules/@types/node/fs.d.ts

100644100755
File mode changed.

node_modules/@types/node/fs/promises.d.ts

100644100755
File mode changed.

node_modules/@types/node/globals.d.ts

100644100755
+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@types/node/globals.global.d.ts

100644100755
File mode changed.

node_modules/@types/node/http.d.ts

100644100755
+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@types/node/http2.d.ts

100644100755
+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@types/node/https.d.ts

100644100755
File mode changed.

node_modules/@types/node/index.d.ts

100644100755
File mode changed.

node_modules/@types/node/inspector.d.ts

100644100755
File mode changed.

node_modules/@types/node/module.d.ts

100644100755
File mode changed.

node_modules/@types/node/net.d.ts

100644100755
+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@types/node/os.d.ts

100644100755
File mode changed.

node_modules/@types/node/package.json

100644100755
+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@types/node/path.d.ts

100644100755
File mode changed.

node_modules/@types/node/perf_hooks.d.ts

100644100755
File mode changed.

node_modules/@types/node/process.d.ts

100644100755
File mode changed.

node_modules/@types/node/punycode.d.ts

100644100755
File mode changed.

node_modules/@types/node/querystring.d.ts

100644100755
File mode changed.

node_modules/@types/node/readline.d.ts

100644100755
File mode changed.

node_modules/@types/node/repl.d.ts

100644100755
File mode changed.

node_modules/@types/node/stream.d.ts

100644100755
+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/@types/node/stream/consumers.d.ts

100644100755
File mode changed.

node_modules/@types/node/stream/promises.d.ts

100644100755
File mode changed.

node_modules/@types/node/stream/web.d.ts

100644100755
File mode changed.

node_modules/@types/node/string_decoder.d.ts

100644100755
File mode changed.

node_modules/@types/node/timers.d.ts

100644100755
File mode changed.

node_modules/@types/node/timers/promises.d.ts

100644100755
File mode changed.

node_modules/@types/node/tls.d.ts

100644100755
File mode changed.

node_modules/@types/node/trace_events.d.ts

100644100755
File mode changed.

node_modules/@types/node/tty.d.ts

100644100755
File mode changed.

node_modules/@types/node/url.d.ts

100644100755
File mode changed.

node_modules/@types/node/util.d.ts

100644100755
File mode changed.

node_modules/@types/node/v8.d.ts

100644100755
File mode changed.

node_modules/@types/node/vm.d.ts

100644100755
File mode changed.

node_modules/@types/node/wasi.d.ts

100644100755
File mode changed.

node_modules/@types/node/worker_threads.d.ts

100644100755
File mode changed.

node_modules/@types/node/zlib.d.ts

100644100755
File mode changed.

node_modules/kareem/CHANGELOG.md

+5

node_modules/kareem/index.js

+6-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/kareem/package.json

+11-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/kareem/test/wrap.test.js

+24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)