This commit is contained in:
syuilo
2021-12-09 23:58:30 +09:00
parent 0abe2dfee0
commit c69b72e199
573 changed files with 3318 additions and 3318 deletions

View File

@@ -14,16 +14,16 @@ export const meta = {
params: {
noteId: {
validator: $.type(ID),
}
},
},
errors: {
noSuchNote: {
message: 'No such note.',
code: 'NO_SUCH_NOTE',
id: 'd785b897-fcd3-4fe9-8fc3-b85c26e6c932'
id: 'd785b897-fcd3-4fe9-8fc3-b85c26e6c932',
},
}
},
};
export default define(meta, async (ps, user) => {
@@ -34,7 +34,7 @@ export default define(meta, async (ps, user) => {
const exist = await PromoReads.findOne({
noteId: note.id,
userId: user.id
userId: user.id,
});
if (exist != null) {
@@ -45,6 +45,6 @@ export default define(meta, async (ps, user) => {
id: genId(),
createdAt: new Date(),
noteId: note.id,
userId: user.id
userId: user.id,
});
});