This commit is contained in:
2022-03-10 23:40:25 +00:00
parent 0784313e6d
commit 09972da7e4
3 changed files with 6 additions and 6 deletions

View File

@@ -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())