mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-02 06:46:22 +01:00
Fix incompatible getFileDescriptors api calls
This commit is contained in:
parent
15ed907c34
commit
10b263834d
3 changed files with 11 additions and 5 deletions
|
@ -54,11 +54,11 @@ class SearchSqliteDbDataSource implements SearchDataSource {
|
|||
try {
|
||||
final args = {
|
||||
#account: account.toDb(),
|
||||
#includeRelativePaths: account.roots,
|
||||
#excludeRelativePaths: [
|
||||
#includeRelativeRoots: account.roots,
|
||||
#excludeRelativeRoots: [
|
||||
remote_storage_util.remoteStorageDirRelativePath
|
||||
],
|
||||
#relativePathKeywords: keywords,
|
||||
#relativePathKeywords: keywords.toList(),
|
||||
#mimes: file_util.supportedFormatMimes,
|
||||
};
|
||||
for (final f in criteria.filters) {
|
||||
|
@ -84,8 +84,8 @@ class SearchSqliteDbDataSource implements SearchDataSource {
|
|||
try {
|
||||
final args = {
|
||||
#account: account.toDb(),
|
||||
#includeRelativePaths: account.roots,
|
||||
#excludeRelativePaths: [
|
||||
#includeRelativeRoots: account.roots,
|
||||
#excludeRelativeRoots: [
|
||||
remote_storage_util.remoteStorageDirRelativePath
|
||||
],
|
||||
#location: criteria.input,
|
||||
|
|
|
@ -275,7 +275,9 @@ abstract class NpDb {
|
|||
List<int>? fileIds,
|
||||
List<String>? includeRelativeRoots,
|
||||
List<String>? excludeRelativeRoots,
|
||||
List<String>? relativePathKeywords,
|
||||
String? location,
|
||||
bool? isFavorite,
|
||||
List<String>? mimes,
|
||||
int? limit,
|
||||
});
|
||||
|
|
|
@ -439,7 +439,9 @@ class NpDbSqlite implements NpDb {
|
|||
List<int>? fileIds,
|
||||
List<String>? includeRelativeRoots,
|
||||
List<String>? excludeRelativeRoots,
|
||||
List<String>? relativePathKeywords,
|
||||
String? location,
|
||||
bool? isFavorite,
|
||||
List<String>? mimes,
|
||||
int? limit,
|
||||
}) async {
|
||||
|
@ -449,7 +451,9 @@ class NpDbSqlite implements NpDb {
|
|||
fileIds: fileIds,
|
||||
includeRelativeRoots: includeRelativeRoots,
|
||||
excludeRelativeRoots: excludeRelativeRoots,
|
||||
relativePathKeywords: relativePathKeywords,
|
||||
location: location,
|
||||
isFavorite: isFavorite,
|
||||
mimes: mimes,
|
||||
limit: limit,
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue