Skip to content

Commit

Permalink
NO_SUCH_FILE
Browse files Browse the repository at this point in the history
  • Loading branch information
tamaina committed Feb 24, 2023
1 parent e898fdb commit 96ab468
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/backend/src/server/api/endpoints/notes/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ export const meta = {
id: 'b390d7e1-8a5e-46ed-b625-06271cafd3d3',
},

fileNotFound: {
noSuchFile: {
message: 'Some files are not found.',
code: 'FILE_NOT_FOUND',
code: 'NO_SUCH_FILE',
id: 'b6992544-63e7-67f0-fa7f-32444b1b5306',
},
},
Expand Down Expand Up @@ -215,7 +215,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
.getMany();

if (files.length !== fileIds.length) {
throw new ApiError(meta.errors.fileNotFound);
throw new ApiError(meta.errors.noSuchFile);
}
}

Expand Down

0 comments on commit 96ab468

Please sign in to comment.