fix(types): Fixed incorrectly referenced type

This commit is contained in:
Taso committed 2021-04-11 10:32:31 -04:00
1 parent b5fca6b35b
commit 390319deda
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@ import { mainLogger } from './sv_logger';
const photoLogger = mainLogger.child({ module: 'photo' });
async function uploadPhoto(identifier: string, image: string): Promise<IPhoto> {
async function uploadPhoto(identifier: string, image: string): Promise<GalleryPhoto> {
const query = 'INSERT INTO npwd_phone_gallery (identifier, image) VALUES (?, ?)';
const [results] = (await pool.query(query, [identifier, image])) as any;
return { id: results.insertId, image };