(rows: readonly CoreRow<"plugin_storage">[])
| 1525 | const ownerRank = (owner: Owner): number => readOwners.indexOf(owner); |
| 1526 | |
| 1527 | const sortByOwnerPrecedence = (rows: readonly CoreRow<"plugin_storage">[]) => |
| 1528 | [...rows].sort((left, right) => { |
| 1529 | const l = ownerRank(left.owner as Owner); |
| 1530 | const r = ownerRank(right.owner as Owner); |
| 1531 | return l - r || left.key.localeCompare(right.key); |
| 1532 | }); |
| 1533 | |
| 1534 | const getVisible = <T>(collection: string, key: string) => |
| 1535 | input.core.findMany("plugin_storage", { where: whereFor(collection, key) }).pipe( |
no test coverage detected