Merge pull request #127 from the-luap/feat/optional-event-date-expiration-beta
fix: correct storage path resolution in multiple files (#96)
This commit is contained in:
@@ -16,7 +16,7 @@ const { NotFoundError } = require('../utils/errors');
|
|||||||
const { ensureThumbnail } = require('../services/imageProcessor');
|
const { ensureThumbnail } = require('../services/imageProcessor');
|
||||||
|
|
||||||
// Get storage path from environment or default
|
// Get storage path from environment or default
|
||||||
const getStoragePath = () => process.env.STORAGE_PATH || path.join(__dirname, '../../storage');
|
const getStoragePath = () => process.env.STORAGE_PATH || path.join(__dirname, '../../../storage');
|
||||||
|
|
||||||
// Check for slug redirect (for renamed events)
|
// Check for slug redirect (for renamed events)
|
||||||
async function checkSlugRedirect(slug) {
|
async function checkSlugRedirect(slug) {
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ const { validatePasswordInContext, getBcryptRounds } = require('../utils/passwor
|
|||||||
const { buildShareLinkVariants } = require('./shareLinkService');
|
const { buildShareLinkVariants } = require('./shareLinkService');
|
||||||
const { parseBooleanInput, parseStringInput } = require('../utils/parsers');
|
const { parseBooleanInput, parseStringInput } = require('../utils/parsers');
|
||||||
|
|
||||||
const getStoragePath = () => process.env.STORAGE_PATH || path.join(__dirname, '../../storage');
|
const getStoragePath = () => process.env.STORAGE_PATH || path.join(__dirname, '../../../storage');
|
||||||
|
|
||||||
// Cache for schema detection
|
// Cache for schema detection
|
||||||
let customerColumnCache = null;
|
let customerColumnCache = null;
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ const fs = require('fs').promises;
|
|||||||
const { db } = require('../database/db');
|
const { db } = require('../database/db');
|
||||||
const { formatBoolean } = require('../utils/dbCompat');
|
const { formatBoolean } = require('../utils/dbCompat');
|
||||||
|
|
||||||
const getStoragePath = () => process.env.STORAGE_PATH || path.join(__dirname, '../../storage');
|
const getStoragePath = () => process.env.STORAGE_PATH || path.join(__dirname, '../../../storage');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get photos for an event with optional filtering
|
* Get photos for an event with optional filtering
|
||||||
|
|||||||
Reference in New Issue
Block a user