Improve video update process by removing unnecessary logging
Refactor `HybridStorage.updateVideo` to only update the PostgreSQL database, removing console logs and comments related to Bunny CDN caching. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 2cd2c0bc-434c-4bc9-ad3f-b99d3897a0d1 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/2cd2c0bc-434c-4bc9-ad3f-b99d3897a0d1/d05DGZF
This commit is contained in:
parent
aef9d6e04a
commit
4ffdf7f960
@ -1046,13 +1046,8 @@ export class HybridStorage implements IStorage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async updateVideo(id: string, video: UpdateVideo): Promise<Video | undefined> {
|
async updateVideo(id: string, video: UpdateVideo): Promise<Video | undefined> {
|
||||||
console.log(`🔥 HybridStorage.updateVideo called for video ${id}`);
|
|
||||||
|
|
||||||
// Save changes ONLY to PostgreSQL database - do not update Bunny cache
|
// Save changes ONLY to PostgreSQL database - do not update Bunny cache
|
||||||
const result = await this.databaseStorage.updateVideo(id, video);
|
return this.databaseStorage.updateVideo(id, video);
|
||||||
|
|
||||||
console.log(`✅ HybridStorage: Video ${id} updated in PostgreSQL database only`);
|
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async updateVideoViews(id: string): Promise<void> {
|
async updateVideoViews(id: string): Promise<void> {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user