mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-17 12:20:01 +02:00
fix(cloudinary): correct method name to getCloudinaryConfig across backend
This commit is contained in:
1 parent
60c830c88b
commit
a01194cc79
2 files changed
+8
-8
No files matched your search
+3
-3
@@ -607,7 +607,7 @@ export async function registerRoutes(app: Express): Promise<Server> {
|
||||
const userId = user.id;
|
||||
|
||||
// Check if Cloudinary is configured (shared config used for all users)
|
||||
const cloudinaryConfig = await storage.getAnyCloudinaryConfig();
|
||||
const cloudinaryConfig = await storage.getCloudinaryConfig();
|
||||
|
||||
if (!cloudinaryConfig) {
|
||||
// Nettoyer le fichier temporaire
|
||||
@@ -815,7 +815,7 @@ export async function registerRoutes(app: Express): Promise<Server> {
|
||||
console.log("🏢 Adding logo overlay...");
|
||||
|
||||
// Get Cloudinary config to get logo public ID
|
||||
const cloudinaryConfig = await storage.getAnyCloudinaryConfig();
|
||||
const cloudinaryConfig = await storage.getCloudinaryConfig();
|
||||
if (cloudinaryConfig && cloudinaryConfig.logoPublicId) {
|
||||
try {
|
||||
// Build logo URL from Cloudinary
|
||||
@@ -911,7 +911,7 @@ export async function registerRoutes(app: Express): Promise<Server> {
|
||||
console.log("✅ Overlays applied, uploading to Cloudinary...");
|
||||
|
||||
// Check if Cloudinary is configured (shared config used for all users)
|
||||
const cloudinaryConfig = await storage.getAnyCloudinaryConfig();
|
||||
const cloudinaryConfig = await storage.getCloudinaryConfig();
|
||||
if (!cloudinaryConfig) {
|
||||
return res.status(400).json({
|
||||
error: "Cloudinary not configured. Please ask an administrator to configure Cloudinary in Settings first."
|
||||
|
||||
@@ -15,7 +15,7 @@ class CloudinaryService {
|
||||
instagramStoryUrl: string | null;
|
||||
}> {
|
||||
// Get any available Cloudinary config (shared across all users)
|
||||
const config = await storage.getAnyCloudinaryConfig();
|
||||
const config = await storage.getCloudinaryConfig();
|
||||
|
||||
if (!config) {
|
||||
throw new Error('Cloudinary configuration not found. Please ask an administrator to configure Cloudinary in Settings first.');
|
||||
@@ -94,7 +94,7 @@ class CloudinaryService {
|
||||
|
||||
async deleteMedia(publicId: string, userId: string, mediaType: 'image' | 'video'): Promise<void> {
|
||||
// Get any available Cloudinary config (shared across all users)
|
||||
const config = await storage.getAnyCloudinaryConfig();
|
||||
const config = await storage.getCloudinaryConfig();
|
||||
|
||||
if (!config) {
|
||||
throw new Error('Cloudinary configuration not found. Please ask an administrator to configure Cloudinary in Settings first.');
|
||||
@@ -113,7 +113,7 @@ class CloudinaryService {
|
||||
}
|
||||
|
||||
async uploadStoryImageWithText(buffer: Buffer, originalFileName: string): Promise<string> {
|
||||
const config = await storage.getAnyCloudinaryConfig();
|
||||
const config = await storage.getCloudinaryConfig();
|
||||
|
||||
if (!config) {
|
||||
throw new Error('Cloudinary configuration not found. Please ask an administrator to configure Cloudinary in Settings first.');
|
||||
@@ -146,7 +146,7 @@ class CloudinaryService {
|
||||
}
|
||||
|
||||
async uploadLogo(buffer: Buffer, fileName: string): Promise<{ publicId: string; url: string }> {
|
||||
const config = await storage.getAnyCloudinaryConfig();
|
||||
const config = await storage.getCloudinaryConfig();
|
||||
|
||||
if (!config) {
|
||||
throw new Error('Cloudinary configuration not found. Please ask an administrator to configure Cloudinary in Settings first.');
|
||||
@@ -182,7 +182,7 @@ class CloudinaryService {
|
||||
}
|
||||
|
||||
async deleteLogo(publicId: string): Promise<void> {
|
||||
const config = await storage.getAnyCloudinaryConfig();
|
||||
const config = await storage.getCloudinaryConfig();
|
||||
|
||||
if (!config) {
|
||||
throw new Error('Cloudinary configuration not found. Please ask an administrator to configure Cloudinary in Settings first.');
|
||||
|
||||
Reference in new issue
Block a user