(rows: readonly CoreRow<"plugin_storage">[])
| 1339 | const ownerRank = (owner: Owner): number => readOwners.indexOf(owner); |
| 1340 | |
| 1341 | const sortByOwnerPrecedence = (rows: readonly CoreRow<"plugin_storage">[]) => |
| 1342 | [...rows].sort((left, right) => { |
| 1343 | const l = ownerRank(left.owner as Owner); |
| 1344 | const r = ownerRank(right.owner as Owner); |
| 1345 | return l - r || left.key.localeCompare(right.key); |
| 1346 | }); |
| 1347 | |
| 1348 | const getVisible = <T>(collection: string, key: string) => |
| 1349 | input.core.findMany("plugin_storage", { where: whereFor(collection, key) }).pipe( |
no test coverage detected