feat(admin): stabilize blog and admin patterns
TaxBaik CI/CD / build-and-deploy (push) Has been cancelled
TaxBaik CI/CD / build-and-deploy (push) Has been cancelled
This commit is contained in:
@@ -112,6 +112,23 @@ public class InquiryRepository(IDbConnectionFactory connectionFactory) : BaseRep
|
||||
new { Id = id, AdminMemo = adminMemo });
|
||||
}
|
||||
|
||||
public async Task UpdateAsync(Inquiry inquiry, CancellationToken cancellationToken = default)
|
||||
{
|
||||
using var conn = Conn();
|
||||
await conn.ExecuteAsync(
|
||||
@"UPDATE inquiries
|
||||
SET name = @Name,
|
||||
phone = @Phone,
|
||||
email = @Email,
|
||||
service_type = @ServiceType,
|
||||
message = @Message,
|
||||
status = @Status,
|
||||
admin_memo = @AdminMemo,
|
||||
updated_at = NOW()
|
||||
WHERE id = @Id",
|
||||
inquiry);
|
||||
}
|
||||
|
||||
public async Task LinkClientAsync(int inquiryId, int clientId, CancellationToken cancellationToken = default)
|
||||
{
|
||||
using var conn = Conn();
|
||||
|
||||
Reference in New Issue
Block a user