Added a default value for the assetEnding in the media controller
This commit is contained in:
parent
55df6c907a
commit
ea0027cac3
@ -8,8 +8,8 @@ import {bucket} from "./bucket";
|
||||
* @param assetName The name of the asset
|
||||
* @param assetEnding The file ending of the asset
|
||||
*/
|
||||
export const createMedia = (clientId: number, assetName: string, assetEnding: string) =>
|
||||
Media.create({clientId, assetName, assetEnding});
|
||||
export const createMedia = (clientId: number, assetName: string, assetEnding: string | undefined) =>
|
||||
Media.create({clientId, assetName, assetEnding: assetEnding || "txt"});
|
||||
|
||||
/**
|
||||
* Gets a media object by the asset id
|
||||
|
Loading…
x
Reference in New Issue
Block a user