Skip to content

Commit

Permalink
fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp committed Nov 6, 2023
1 parent a06b342 commit 7c1f621
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/v2/firestorm/textures/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ export const textures = firestorm.collection("textures", (el) => {
el.paths = async (): Promise<Paths> =>
el
.uses()
.then((_uses) => Promise.all(_uses.map((_use) => uses.get(_use.id).then((u) => u.getPaths()))))
.then((_uses) =>
Promise.all(_uses.map((_use) => uses.get(_use.id).then((u) => u.getPaths()))),
)
.then((arr) => arr.flat());

el.url = async (pack: KnownPacks, version: string): Promise<string> => {
Expand Down
2 changes: 1 addition & 1 deletion src/v2/firestorm/textures/paths.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import firestorm from "firestorm-db";
import { Texture, Use } from "~/v2/interfaces";
import config from "../config";

import { uses } from "./uses";
import { Texture, Use } from "~/v2/interfaces";

config();

Expand Down
2 changes: 1 addition & 1 deletion src/v2/firestorm/textures/uses.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import firestorm from "firestorm-db";
import { Paths, Texture } from "~/v2/interfaces";
import config from "../config";

import { textures } from ".";
import { paths } from "./paths";
import { Paths, Texture } from "~/v2/interfaces";

config();

Expand Down
2 changes: 1 addition & 1 deletion src/v2/firestorm/users/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ config();

export const users = firestorm.collection("users", (el) => {
el.contributions = async (): Promise<Contributions> =>
await contributions.search([
contributions.search([
{
field: "authors",
criteria: "array-contains",
Expand Down
2 changes: 1 addition & 1 deletion src/v2/repository/firestorm/path.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default class PathFirestormRepository implements PathRepository {
}

createPath(path: InputPath): Promise<Path> {
return paths.then((id) => paths.get(id));
return paths.add(path).then((id) => paths.get(id));
}

removePathById(path_id: string): Promise<void> {
Expand Down

0 comments on commit 7c1f621

Please sign in to comment.