Skip to content

Commit

Permalink
fix(user): typo in list refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
7185 committed Nov 11, 2024
1 parent eb73558 commit 42a9887
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ COPY frontend/package.json frontend/angular.json frontend/tsconfig.json frontend
COPY frontend/public /root/frontend/public
COPY action-parser/src /root/action-parser/src
COPY frontend/src /root/frontend/src
COPY package.json package-lock.json /root
COPY package.json package-lock.json /root/
RUN npm -w action-parser -w frontend ci && \
npm -w frontend run build:prod && \
rm -r .npm action-parser frontend node_modules
Expand Down Expand Up @@ -35,7 +35,7 @@ ENV DATABASE_URL="file:/app.db"
WORKDIR /root
COPY backend /root/backend/
COPY --from=frontend --chown=nobody:nobody /root/static /static
COPY package.json package-lock.json /root
COPY package.json package-lock.json /root/
RUN npm -w backend ci && \
npx -w backend prisma generate --generator client && \
npm -w backend run build && \
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/user/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class UserService {
refreshList(list: User[]) {
// Remove unlisted users
const newList = this.userList().filter(
(u) => !list.map((c) => c.id).includes(u.id)
(u) => list.map((c) => c.id).includes(u.id)
)
for (const u of list) {
// Still update world for listed users
Expand Down

0 comments on commit 42a9887

Please sign in to comment.