mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
fix(camera): resolve issue for deleting images
This commit is contained in:
1 parent
ee7e544b23
commit
1c81bfa7f2
3 files changed
+11
-7
No files matched your search
@@ -22,8 +22,8 @@ async function getPhotosByIdentifier(identifier: string): Promise<IPhoto[]> {
|
||||
|
||||
async function deletePhoto(photo: IPhoto, identifier: string) {
|
||||
const query =
|
||||
'DELETE FROM npwd_phone_gallery WHERE id = ? AND identifier = ?';
|
||||
await pool.query(query, [photo.id, identifier]);
|
||||
'DELETE FROM npwd_phone_gallery WHERE image = ? AND identifier = ?';
|
||||
await pool.query(query, [photo.image, identifier]);
|
||||
}
|
||||
|
||||
onNet(events.CAMERA_UPLOAD_PHOTO, async (image: string) => {
|
||||
|
||||
Reference in new issue
Block a user