initialize cache path

This commit is contained in:
SrGooglo 2023-07-20 13:34:48 +00:00
parent cda6337eaf
commit b6dad15068

View File

@ -84,6 +84,12 @@ export default class API {
global.uploadCachePath = process.env.uploadCachePath ?? path.resolve(process.cwd(), "cache")
if (!fs.existSync(global.uploadCachePath)) {
fs.mkdirSync(global.uploadCachePath, {
recursive: true,
})
}
global.DEFAULT_POSTING_POLICY = {
maxMessageLength: 512,
acceptedMimeTypes: [