mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-02 06:46:22 +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)
|
||||
..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 diff = getDiff(dirFiles.map((e) => e.child),
|
||||
_childRowIds.sorted(Comparable.compare));
|
||||
|
|
Loading…
Reference in a new issue