feat: update file output paths and add feedback tracking to service schema
- Modified file output paths in LiveKitRoomService to utilize the BUCKET_NAME environment variable for dynamic S3 storage. - Introduced a new `feedbacked` field in ServiceSchema to track whether a user has provided feedback for a service, enhancing user interaction capabilities. - Cleaned up the ServiceFeedback schema by refining the resolve function for better clarity and consistency.
This commit is contained in:
@@ -48,7 +48,7 @@ export class LiveKitRoomService {
|
||||
fileOutputs: [
|
||||
{
|
||||
fileType: EncodedFileType.MP4,
|
||||
filepath: `epess/records/${roomId}/${roomId}-${DateTimeUtils.now().toISO()}`,
|
||||
filepath: `${process.env.BUCKET_NAME}/records/${roomId}/${roomId}-${DateTimeUtils.now().toISO()}`,
|
||||
output: {
|
||||
case: 's3',
|
||||
value: {
|
||||
@@ -93,7 +93,7 @@ export class LiveKitRoomService {
|
||||
region: process.env.MINIO_REGION,
|
||||
},
|
||||
},
|
||||
filepath: `epess/records/${roomId}/${roomId}-${DateTimeUtils.now().toISO()}`,
|
||||
filepath: `${process.env.BUCKET_NAME}/records/${roomId}/${roomId}-${DateTimeUtils.now().toISO()}`,
|
||||
},
|
||||
],
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user