fix room
This commit is contained in:
@ -463,7 +463,8 @@ export class RoomController {
|
|||||||
const files = fs.readdirSync(filePath)
|
const files = fs.readdirSync(filePath)
|
||||||
|
|
||||||
const photoBaseUrl = "https://his.shiblysolution.id/service-master-data/uploads/room-picture/template/";
|
const photoBaseUrl = "https://his.shiblysolution.id/service-master-data/uploads/room-picture/template/";
|
||||||
const filesWithUrl = files.map(filename => ({
|
const filesWithUrl = files.map((filename, index) => ({
|
||||||
|
id: index,
|
||||||
name: `template/${filename}`,
|
name: `template/${filename}`,
|
||||||
url: photoBaseUrl + filename
|
url: photoBaseUrl + filename
|
||||||
}));
|
}));
|
||||||
|
|||||||
Reference in New Issue
Block a user