feat: enable hybrid local and remote module execution
This commit is contained in:
@@ -43,6 +43,26 @@ export class R2PublicFileService {
|
||||
].filter(Boolean).join('/');
|
||||
}
|
||||
|
||||
createLmsSavedMapFileKey(input: {
|
||||
userId: string;
|
||||
courseId: string;
|
||||
week: number;
|
||||
mapId: string;
|
||||
fileName: string;
|
||||
}) {
|
||||
const fileName = input.fileName.replace(/[^A-Za-z0-9._-]/g, '_');
|
||||
return [
|
||||
this.publicPrefix,
|
||||
'lms',
|
||||
'saved-maps',
|
||||
input.courseId,
|
||||
`week-${input.week}`,
|
||||
input.userId,
|
||||
input.mapId,
|
||||
fileName,
|
||||
].filter(Boolean).join('/');
|
||||
}
|
||||
|
||||
async uploadPublicFile(input: UploadPublicFileInput) {
|
||||
if (!this.isConfigured()) return null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user