File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/routes/(console)/project-[region]-[project]/sites Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 3
3
import { humanFileSize } from ' $lib/helpers/sizeConvertion' ;
4
4
import { formatTimeDetailed } from ' $lib/helpers/timeConversion' ;
5
5
import type { Models } from ' @appwrite.io/console' ;
6
+ import { page } from ' $app/state' ;
6
7
import {
7
8
Badge ,
8
9
Divider ,
45
46
}
46
47
47
48
function getFilePreview(fileId : string ) {
48
- return sdk .forConsole .storage .getFileView (' screenshots' , fileId );
49
+ return sdk .forConsoleIn ( page . params . region ) .storage .getFileView (' screenshots' , fileId );
49
50
}
50
51
</script >
51
52
Original file line number Diff line number Diff line change 33
33
}
34
34
35
35
function getFilePreview(fileId : string ) {
36
- return sdk .forConsole .storage .getFileView (' screenshots' , fileId );
36
+ return sdk .forConsoleIn ( page . params . region ) .storage .getFileView (' screenshots' , fileId );
37
37
}
38
38
</script >
39
39
You can’t perform that action at this time.
0 commit comments