Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dhardtke committed Oct 17, 2024
1 parent e68ec93 commit c20d7fd
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 8 deletions.
10 changes: 10 additions & 0 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/controllers/recipe.controller.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { path, needle } from "../../deps.ts";
import { needle, path } from "../../deps.ts";
import { Recipe } from "../data/model/recipe.ts";
import { importRecipes } from "../data/parse/import/import-recipe.ts";
import { RecipeService } from "../data/service/recipe.service.ts";
Expand Down
2 changes: 1 addition & 1 deletion src/http/routers/assets.router.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Oak, needle } from "../../../deps.ts";
import { needle, Oak } from "../../../deps.ts";
import { root } from "../../shared/util.ts";
import { Router } from "./router.ts";

Expand Down
2 changes: 1 addition & 1 deletion src/http/routers/index.router.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Oak, needle } from "../../../deps.ts";
import { needle, Oak } from "../../../deps.ts";
import { IndexController } from "../../controllers/index.controller.ts";
import { OrderBy } from "../../data/service/util/order-by.ts";
import { toInt } from "../../data/util/convert.ts";
Expand Down
2 changes: 1 addition & 1 deletion src/http/routers/recipe.router.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Oak, needle } from "../../../deps.ts";
import { needle, Oak } from "../../../deps.ts";
import { RecipeController } from "../../controllers/recipe.controller.ts";
import { translateFormDataToRecipe, translateFormDataToThumbnail } from "../../data/model/recipe.ts";
import { toInt } from "../../data/util/convert.ts";
Expand Down
2 changes: 1 addition & 1 deletion src/http/webserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Page } from "../tpl/templates/_structure/page.tsx";
import { handleNotFound, handleServerError } from "./middleware/error.ts";
import { languageMiddleware } from "./middleware/language.ts";
import { RouterRegistry } from "./routers/router-registry.ts";
import {currentUrl} from "./middleware/helpers/current-url.ts";
import { currentUrl } from "./middleware/helpers/current-url.ts";

export interface AppState {
settings: Settings;
Expand Down
6 changes: 3 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ export async function main(bootData: BootData = {
}
// Dependency Injection registration
const database = new Database(buildDbPath(options.configDir));
await container.bind({provide: Database, useValue: database });
await container.bind({provide: SETTINGS, useValue: settings });
await container.bind({provide: CONFIG_DIR, useValue: options.configDir });
await container.bind({ provide: Database, useValue: database });
await container.bind({ provide: SETTINGS, useValue: settings });
await container.bind({ provide: CONFIG_DIR, useValue: options.configDir });
database.migrate();

log.debug(() => `IS_COMPILED is initialized as ${IS_COMPILED}`);
Expand Down

1 comment on commit c20d7fd

@deno-deploy
Copy link

@deno-deploy deno-deploy bot commented on c20d7fd Oct 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failed to deploy:

Your deployment uses decorators. The default for 'experimentalDecorators' will be changing to 'false'. In the meantime, please explicitly set the 'experimentalDecorators' compiler option. For more information, see https://deno.com/deploy/changelog#es-decorators-are-enabled-on-deno-deploy-replacing-experimental-ts-decorators

Please sign in to comment.