Skip to content

Commit

Permalink
🐛 Fix build breakers
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacInsoll committed Nov 10, 2024
1 parent 67ee032 commit 253670c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions backend/express/picrTemplate.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { readFileSync } from 'node:fs';
import { log } from '../logger';
import { contextPermissionsForFolder } from '../auth/contextPermissionsForFolder';
import Folder from '../models/Folder';
import { folderStatsSummaryText } from '../graphql/helpers/folderStats';
import { thumbnailForFolder } from '../helpers/thumbnailForFolder';
import { imageURL } from '../../frontend/src/helpers/imageURL';
import { Request, Response } from 'express';
import { joinTitles } from '../helpers/joinTitle';
Expand Down
2 changes: 1 addition & 1 deletion backend/graphql/helpers/heroImageForFolder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const heroImageForFolder = async (f: Folder) => {
if (!heroImage || !heroImage.exists || !heroImage.folderId != f.id) {
const first = await File.findOne({
where: { folderId: f.id, type: 'Image', exists: true },
order: [['name']],
order: [['name', 'ASC']],
});
// console.log(f.relativePath + ' no hero image so found: ' + first?.name);
return first;
Expand Down

0 comments on commit 253670c

Please sign in to comment.