This commit is contained in:
2022-12-26 18:03:46 +00:00
parent 19e0037511
commit fac5b03007
9 changed files with 158 additions and 81 deletions

View File

@@ -597,7 +597,7 @@ namespace Sockeye.Api.Controllers
await ct.Database.OpenConnectionAsync();
cmd.CommandText = $@"select afileattachment.id, afileattachment.xmin as concurrency, displayfilename,contenttype,lastmodified, afileattachment.notes, size, auser.name as attachedbyuser from afileattachment
left join auser on (afileattachment.attachedByUserId=auser.id)
where attachtosockType={(int)sockType} and attachtoobjectid={sockId}
where attachtoatype={(int)sockType} and attachtoobjectid={sockId}
order by displayfilename";
using (var dr = await cmd.ExecuteReaderAsync())