This commit is contained in:
@@ -617,7 +617,7 @@ namespace AyaNova.Api.Controllers
|
||||
await ct.Database.OpenConnectionAsync();
|
||||
cmd.CommandText = $@"select afileattachment.id, displayfilename,contenttype,lastmodified, afileattachment.notes, size, auser.name as attachedbyuser from afileattachment
|
||||
left join auser on (afileattachment.attachtoobjectid=auser.id)
|
||||
where attachtoatype={ayaType} and attachtoobjectid={ayaId}
|
||||
where attachtoatype={(int)ayaType} and attachtoobjectid={ayaId}
|
||||
order by displayfilename";
|
||||
|
||||
using (var dr = await cmd.ExecuteReaderAsync())
|
||||
|
||||
Reference in New Issue
Block a user