|
@@ -1781,7 +1781,7 @@ export class ShopDatabase {
|
|
|
*/
|
|
*/
|
|
|
getShopContent(shopId: string): any[] {
|
|
getShopContent(shopId: string): any[] {
|
|
|
const stmt = this.db.prepare(`
|
|
const stmt = this.db.prepare(`
|
|
|
- SELECT * FROM shop_contents
|
|
|
|
|
|
|
+ SELECT * FROM shop_content
|
|
|
WHERE shop_id = ?
|
|
WHERE shop_id = ?
|
|
|
ORDER BY created_at DESC
|
|
ORDER BY created_at DESC
|
|
|
`);
|
|
`);
|
|
@@ -1793,7 +1793,7 @@ export class ShopDatabase {
|
|
|
*/
|
|
*/
|
|
|
getShopContentById(contentId: string): any | null {
|
|
getShopContentById(contentId: string): any | null {
|
|
|
const stmt = this.db.prepare(`
|
|
const stmt = this.db.prepare(`
|
|
|
- SELECT * FROM shop_contents
|
|
|
|
|
|
|
+ SELECT * FROM shop_content
|
|
|
WHERE id = ?
|
|
WHERE id = ?
|
|
|
`);
|
|
`);
|
|
|
return stmt.get(contentId) as any | null;
|
|
return stmt.get(contentId) as any | null;
|