@duvdu-v1/duvdu 1.0.53 → 1.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -11,7 +11,7 @@ const bad_request_error_1 = require("../errors/bad-request-error");
|
|
|
11
11
|
const folders_1 = require("../types/folders");
|
|
12
12
|
const uploadProjectMedia = () => (0, multer_1.default)({
|
|
13
13
|
storage: multer_1.default.diskStorage({
|
|
14
|
-
destination: path_1.default.join(__dirname,
|
|
14
|
+
destination: path_1.default.join(__dirname, `../../../../../media/${folders_1.FOLDERS.portfolio_post}`),
|
|
15
15
|
filename(req, file, callback) {
|
|
16
16
|
callback(null, `${Date.now()}_${crypto_1.default.randomBytes(6).toString('hex')}.${file.originalname.split('.').at(-1)}`);
|
|
17
17
|
},
|
package/package.json
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { IjwtPayload, Ipagination } from '@duvdu-v1/duvdu';
|
|
2
|
-
declare module 'express-session' {
|
|
3
|
-
interface SessionData {
|
|
4
|
-
access: string;
|
|
5
|
-
refresh: string;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
declare global {
|
|
9
|
-
namespace Express {
|
|
10
|
-
interface Request {
|
|
11
|
-
loggedUser: IjwtPayload;
|
|
12
|
-
pagination: Ipagination;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|