@dosgato/api 0.0.118 → 0.0.119
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -127,7 +127,7 @@ async function processFilters(filter) {
|
|
|
127
127
|
export async function getAssets(filter, tdb = db) {
|
|
128
128
|
const { binds, where, joins } = await processFilters(filter);
|
|
129
129
|
const assets = await tdb.getall(`
|
|
130
|
-
SELECT assets.id, assets.dataId, assets.name, assets.folderId, assets.deletedAt, assets.deletedBy, assets.deleteState,
|
|
130
|
+
SELECT assets.id, assets.dataId, assets.name, assets.linkId, assets.folderId, assets.deletedAt, assets.deletedBy, assets.deleteState,
|
|
131
131
|
binaries.bytes AS filesize, binaries.mime, binaries.shasum, binaries.meta,
|
|
132
132
|
sites.deletedAt IS NOT NULL OR pagetrees.deletedAt IS NOT NULL as orphaned,
|
|
133
133
|
pagetrees.type as pagetreeType, assetfolders.siteId
|