Skip to content

Commit

Permalink
Implement releases blocks
Browse files Browse the repository at this point in the history
Signed-off-by: Marcos Candeia <marrcooos@gmail.com>
  • Loading branch information
mcandeia committed Sep 8, 2023
1 parent f070210 commit 9ac374f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion admin/loaders/blocks/latest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default async function Latest(
): Promise<BlockState | null> {
const state = await ctx.storage.state();
const block = state[blockId];
if (!blockId) {
if (!block) {
return null;
}

Expand Down
18 changes: 18 additions & 0 deletions admin/loaders/releases/blocks.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { AppContext } from "../../mod.ts";

export interface Props {
site: string;
}

export default function ListBlocks(
_props: Props,
_req: Request,
_ctx: AppContext,
) {
return {
data: [],
page: 0,
pageSize: 0,
total: 0,
};
}

0 comments on commit 9ac374f

Please sign in to comment.