mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-13 06:08:12 +09:00
Update read.ts
This commit is contained in:
parent
95852d5ae9
commit
be9d8a679f
@ -11,15 +11,15 @@ export default (
|
|||||||
noteId: Note['id']
|
noteId: Note['id']
|
||||||
) => new Promise<any>(async (resolve, reject) => {
|
) => new Promise<any>(async (resolve, reject) => {
|
||||||
// Remove document
|
// Remove document
|
||||||
const res = await NoteUnreads.delete({
|
/*const res = */await NoteUnreads.delete({
|
||||||
userId: userId,
|
userId: userId,
|
||||||
noteId: noteId
|
noteId: noteId
|
||||||
});
|
});
|
||||||
|
|
||||||
// v11 TODO: https://github.com/typeorm/typeorm/issues/2415
|
// v11 TODO: https://github.com/typeorm/typeorm/issues/2415
|
||||||
if (res.affected == 0) {
|
//if (res.affected == 0) {
|
||||||
return;
|
// return;
|
||||||
}
|
//}
|
||||||
|
|
||||||
const count1 = await NoteUnreads.count({
|
const count1 = await NoteUnreads.count({
|
||||||
userId: userId,
|
userId: userId,
|
||||||
|
Loading…
Reference in New Issue
Block a user