This commit is contained in:
@@ -5,6 +5,7 @@ using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using AyaNova.Util;
|
||||
using AyaNova.Models;
|
||||
|
||||
@@ -34,8 +35,9 @@ namespace AyaNova.Biz
|
||||
|
||||
public static void ProcessDeletedObjectKeywords(AyContext ct, long objectID, AyaType objectType)
|
||||
{
|
||||
throw new System.NotImplementedException("Search::ProcessDeletedObjectKeywords NOT CODED YET");
|
||||
//ProcessKeywords(ct, localeId, objectID, objectType, false, name, text);
|
||||
//Be careful in future, if you put ToString at the end of each object in the string interpolation
|
||||
//npgsql driver will assume it's a string and put quotes around it triggering an error that a string can't be compared to an int
|
||||
ct.Database.ExecuteSqlCommand($"delete from asearchkey where objectid={objectID} and objecttype={(int)objectType}");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user