mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-22 06:59:21 +01:00
Fix sql UNIQUE exception when using folders
This commit is contained in:
parent
f7f8c22000
commit
423ab9ebb1
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ class FileSqliteCacheUpdater {
|
||||||
|
|
||||||
final dirFileQuery = db.select(db.dirFiles)
|
final dirFileQuery = db.select(db.dirFiles)
|
||||||
..where((t) => t.dir.equals(_dirRowId!))
|
..where((t) => t.dir.equals(_dirRowId!))
|
||||||
..orderBy([(t) => sql.OrderingTerm.asc(t.rowId)]);
|
..orderBy([(t) => sql.OrderingTerm.asc(t.child)]);
|
||||||
final dirFiles = await dirFileQuery.get();
|
final dirFiles = await dirFileQuery.get();
|
||||||
final diff = getDiff(dirFiles.map((e) => e.child),
|
final diff = getDiff(dirFiles.map((e) => e.child),
|
||||||
_childRowIds.sorted(Comparable.compare));
|
_childRowIds.sorted(Comparable.compare));
|
||||||
|
|
Loading…
Reference in a new issue