mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-22 06:59:21 +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 {
|
try {
|
||||||
final args = {
|
final args = {
|
||||||
#account: account.toDb(),
|
#account: account.toDb(),
|
||||||
#includeRelativePaths: account.roots,
|
#includeRelativeRoots: account.roots,
|
||||||
#excludeRelativePaths: [
|
#excludeRelativeRoots: [
|
||||||
remote_storage_util.remoteStorageDirRelativePath
|
remote_storage_util.remoteStorageDirRelativePath
|
||||||
],
|
],
|
||||||
#relativePathKeywords: keywords,
|
#relativePathKeywords: keywords.toList(),
|
||||||
#mimes: file_util.supportedFormatMimes,
|
#mimes: file_util.supportedFormatMimes,
|
||||||
};
|
};
|
||||||
for (final f in criteria.filters) {
|
for (final f in criteria.filters) {
|
||||||
|
@ -84,8 +84,8 @@ class SearchSqliteDbDataSource implements SearchDataSource {
|
||||||
try {
|
try {
|
||||||
final args = {
|
final args = {
|
||||||
#account: account.toDb(),
|
#account: account.toDb(),
|
||||||
#includeRelativePaths: account.roots,
|
#includeRelativeRoots: account.roots,
|
||||||
#excludeRelativePaths: [
|
#excludeRelativeRoots: [
|
||||||
remote_storage_util.remoteStorageDirRelativePath
|
remote_storage_util.remoteStorageDirRelativePath
|
||||||
],
|
],
|
||||||
#location: criteria.input,
|
#location: criteria.input,
|
||||||
|
|
|
@ -275,7 +275,9 @@ abstract class NpDb {
|
||||||
List<int>? fileIds,
|
List<int>? fileIds,
|
||||||
List<String>? includeRelativeRoots,
|
List<String>? includeRelativeRoots,
|
||||||
List<String>? excludeRelativeRoots,
|
List<String>? excludeRelativeRoots,
|
||||||
|
List<String>? relativePathKeywords,
|
||||||
String? location,
|
String? location,
|
||||||
|
bool? isFavorite,
|
||||||
List<String>? mimes,
|
List<String>? mimes,
|
||||||
int? limit,
|
int? limit,
|
||||||
});
|
});
|
||||||
|
|
|
@ -439,7 +439,9 @@ class NpDbSqlite implements NpDb {
|
||||||
List<int>? fileIds,
|
List<int>? fileIds,
|
||||||
List<String>? includeRelativeRoots,
|
List<String>? includeRelativeRoots,
|
||||||
List<String>? excludeRelativeRoots,
|
List<String>? excludeRelativeRoots,
|
||||||
|
List<String>? relativePathKeywords,
|
||||||
String? location,
|
String? location,
|
||||||
|
bool? isFavorite,
|
||||||
List<String>? mimes,
|
List<String>? mimes,
|
||||||
int? limit,
|
int? limit,
|
||||||
}) async {
|
}) async {
|
||||||
|
@ -449,7 +451,9 @@ class NpDbSqlite implements NpDb {
|
||||||
fileIds: fileIds,
|
fileIds: fileIds,
|
||||||
includeRelativeRoots: includeRelativeRoots,
|
includeRelativeRoots: includeRelativeRoots,
|
||||||
excludeRelativeRoots: excludeRelativeRoots,
|
excludeRelativeRoots: excludeRelativeRoots,
|
||||||
|
relativePathKeywords: relativePathKeywords,
|
||||||
location: location,
|
location: location,
|
||||||
|
isFavorite: isFavorite,
|
||||||
mimes: mimes,
|
mimes: mimes,
|
||||||
limit: limit,
|
limit: limit,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue