mirror of
https://github.com/immich-app/immich
synced 2026-08-29 13:15:45 +00:00
chore: single line block comments (#30852)
This commit is contained in:
parent
80a90fabf3
commit
03da1ba108
34 changed files with 102 additions and 294 deletions
|
|
@ -113,9 +113,7 @@ export const removeAssets = async (
|
|||
export type PartnerIdOptions = {
|
||||
userId: string;
|
||||
repository: PartnerRepository;
|
||||
/**
|
||||
only include partners with `inTimeline: true`
|
||||
*/
|
||||
/** only include partners with `inTimeline: true` */
|
||||
timelineEnabled?: boolean;
|
||||
};
|
||||
export const getMyPartnerIds = async ({ userId, repository, timelineEnabled }: PartnerIdOptions) => {
|
||||
|
|
|
|||
|
|
@ -391,9 +391,7 @@ export function withEdits(eb: ExpressionBuilder<DB, 'asset'>): AliasedEditAction
|
|||
}
|
||||
|
||||
const joinDeduplicationPlugin = new DeduplicateJoinsPlugin();
|
||||
/**
|
||||
TODO: This should only be used for search-related queries, not as a general purpose query builder
|
||||
*/
|
||||
/** TODO: This should only be used for search-related queries, not as a general purpose query builder */
|
||||
|
||||
export function searchAssetBuilderLegacy(kysely: Kysely<DB>, options: AssetSearchBuilderOptions) {
|
||||
options.withDeleted ||= !!(options.trashedAfter || options.trashedBefore || options.isOffline);
|
||||
|
|
|
|||
|
|
@ -164,9 +164,7 @@ export const mimeTypes = {
|
|||
transparentCapableExtensions.has(getFilenameExtension(filename).toLowerCase()),
|
||||
isRaw: (filename: string) => isType(filename, raw),
|
||||
lookup,
|
||||
/**
|
||||
return an extension (including a leading `.`) for a mime-type
|
||||
*/
|
||||
/** return an extension (including a leading `.`) for a mime-type */
|
||||
toExtension,
|
||||
assetType: (filename: string) => {
|
||||
const contentType = lookup(filename);
|
||||
|
|
|
|||
|
|
@ -12,9 +12,7 @@ export const triggerMap: Record<WorkflowTrigger, WorkflowType[]> = {
|
|||
export const getWorkflowTriggers = () =>
|
||||
Object.entries(triggerMap).map(([trigger, types]) => ({ trigger: trigger as WorkflowTrigger, types }));
|
||||
|
||||
/**
|
||||
some types extend other types and have implied compatibility
|
||||
*/
|
||||
/** some types extend other types and have implied compatibility */
|
||||
const inferredMap: Record<WorkflowType, WorkflowType[]> = {
|
||||
[WorkflowType.AssetV1]: [],
|
||||
// [WorkflowType.AssetPersonV1]: [WorkflowType.AssetV1],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue