Added more typescript support to the backend

This commit is contained in:
subnub
2020-04-18 00:16:31 -04:00
parent c70abc69bb
commit e18ae1eee1
19 changed files with 78 additions and 61 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
const mongoose = require("../backend/db/mongooseServerUtils")
import mongoose from "../backend/db/mongoose";
const conn = mongoose.connection;
const crypto= require("crypto");
const env = require("../backend/enviroment/env");
import env from "../backend/enviroment/env";
const Thumbnail = require("../backend/models/thumbnail");
const ObjectID = require('mongodb').ObjectID
const sharp = require("sharp");