Skip to content

Commit

Permalink
Merge pull request #282 from BY-juun/master
Browse files Browse the repository at this point in the history
Hotfix: client νƒœκ·Έ νƒ€μž… μˆ˜μ •μœΌλ‘œ μΈν•œ μ„œλ²„ μ½”λ“œ μˆ˜μ •
  • Loading branch information
june-by authored Nov 29, 2023
2 parents e671d60 + 7cdb48c commit 7a38c45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions server/build/routes/Tag/tagService.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
Object.defineProperty(exports, "__esModule", { value: true });
const _database_1 = require("../../database");
const createTags = ({ tagArr }) => __awaiter(void 0, void 0, void 0, function* () {
const result = yield Promise.all(tagArr.map((tag) => _database_1.Tags.findOrCreate({
where: { content: tag.toLowerCase() },
const result = yield Promise.all(tagArr.map(({ value }) => _database_1.Tags.findOrCreate({
where: { content: value.toLowerCase() },
})));
return result.map(([data]) => data);
});
Expand Down
6 changes: 3 additions & 3 deletions server/src/routes/Tag/tagService.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Tags, Posts } from "@database";

const createTags = async ({ tagArr }: { tagArr: string[] }) => {
const createTags = async ({ tagArr }: { tagArr: { value: string }[] }) => {
const result = await Promise.all(
tagArr.map((tag) =>
tagArr.map(({ value }) =>
Tags.findOrCreate({
where: { content: tag.toLowerCase() },
where: { content: value.toLowerCase() },
})
)
);
Expand Down

1 comment on commit 7a38c45

@vercel
Copy link

@vercel vercel bot commented on 7a38c45 Nov 29, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.