Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

feat: fix path

Nevo David9f199c06f1a1
diff --git a/libraries/nestjs-libraries/src/database/prisma/posts/posts.service.ts b/libraries/nestjs-libraries/src/database/prisma/posts/posts.service.ts
index 6fc8564c6..448043f41 100644
--- a/libraries/nestjs-libraries/src/database/prisma/posts/posts.service.ts
+++ b/libraries/nestjs-libraries/src/database/prisma/posts/posts.service.ts
@@ -146,7 +146,7 @@ export class PostsService {
m.path
: m.path,
type: 'image',
- path: process.env.UPLOAD_DIRECTORY + m.path,
+ path: m.path.indexOf('http') === -1 ? process.env.UPLOAD_DIRECTORY + m.path : m.path,
})),
}))
);