feat: add weekly curriculum cover image upload and display
This commit is contained in:
@@ -27,11 +27,12 @@ export class R2PublicFileService {
|
||||
createLmsCourseFileKey(input: {
|
||||
courseId: string;
|
||||
week: number;
|
||||
kind: 'REFERENCE' | 'EXAMPLE_CODE';
|
||||
kind: 'REFERENCE' | 'EXAMPLE_CODE' | 'COVER_IMAGE';
|
||||
fileId: string;
|
||||
extension?: string;
|
||||
}) {
|
||||
const section = input.kind === 'EXAMPLE_CODE' ? 'example-codes' : 'references';
|
||||
const section = input.kind === 'COVER_IMAGE' ? 'cover-images'
|
||||
: input.kind === 'EXAMPLE_CODE' ? 'example-codes' : 'references';
|
||||
return [
|
||||
this.publicPrefix,
|
||||
'lms',
|
||||
|
||||
Reference in New Issue
Block a user