mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
initialize cache path
This commit is contained in:
parent
cda6337eaf
commit
b6dad15068
@ -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: [
|
||||
|
Loading…
x
Reference in New Issue
Block a user