(rows: readonly CoreRow<"plugin_storage">[])
| 1164 | const ownerRank = (owner: Owner): number => readOwners.indexOf(owner); |
| 1165 | |
| 1166 | const sortByOwnerPrecedence = (rows: readonly CoreRow<"plugin_storage">[]) => |
| 1167 | [...rows].sort((left, right) => { |
| 1168 | const l = ownerRank(left.owner as Owner); |
| 1169 | const r = ownerRank(right.owner as Owner); |
| 1170 | return l - r || left.key.localeCompare(right.key); |
| 1171 | }); |
| 1172 | |
| 1173 | const getVisible = <T>(collection: string, key: string) => |
| 1174 | input.core.findMany("plugin_storage", { where: whereFor(collection, key) }).pipe( |
no test coverage detected