mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Data layer restructuring (#997)
* Move query builders to sqlite package * Add transaction system * Wrap model resolvers in transaction * Add error return value for StringSliceToIntSlice * Update/refactor mutation resolvers * Convert query builders * Remove unused join types * Add stash id unit tests * Use WAL journal mode
This commit is contained in:
@@ -178,8 +178,10 @@ export const queryFindPerformers = (filter: ListFilterModel) =>
|
||||
},
|
||||
});
|
||||
|
||||
export const useFindGallery = (id: string) =>
|
||||
GQL.useFindGalleryQuery({ variables: { id } });
|
||||
export const useFindGallery = (id: string) => {
|
||||
const skip = id === "new";
|
||||
return GQL.useFindGalleryQuery({ variables: { id }, skip });
|
||||
};
|
||||
export const useFindScene = (id: string) =>
|
||||
GQL.useFindSceneQuery({ variables: { id } });
|
||||
export const useSceneStreams = (id: string) =>
|
||||
|
||||
Reference in New Issue
Block a user