fix CICD
This commit is contained in:
parent
3460c72895
commit
5b32a9021f
|
@ -3,29 +3,30 @@ using System.Threading.Tasks;
|
||||||
using BirdsiteLive.DAL.Contracts;
|
using BirdsiteLive.DAL.Contracts;
|
||||||
using BirdsiteLive.DAL.Models;
|
using BirdsiteLive.DAL.Models;
|
||||||
|
|
||||||
namespace BirdsiteLive.Pipeline.Processors.SubTasks;
|
namespace BirdsiteLive.Pipeline.Processors.SubTasks
|
||||||
|
|
||||||
public class SendTweetsTaskBase
|
|
||||||
{
|
{
|
||||||
private readonly ISyncTweetsPostgresDal _syncTweetsPostgresDal;
|
public class SendTweetsTaskBase
|
||||||
|
|
||||||
#region Ctor
|
|
||||||
protected SendTweetsTaskBase(ISyncTweetsPostgresDal syncTweetsPostgresDal)
|
|
||||||
{
|
{
|
||||||
_syncTweetsPostgresDal = syncTweetsPostgresDal;
|
private readonly ISyncTweetsPostgresDal _syncTweetsPostgresDal;
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
protected async Task SaveSyncTweetAsync(string acct, long tweetId, string host, string inbox)
|
#region Ctor
|
||||||
{
|
protected SendTweetsTaskBase(ISyncTweetsPostgresDal syncTweetsPostgresDal)
|
||||||
var inboxUrl = $"https://{host}/{inbox.Trim('/')}";
|
|
||||||
var tweet = new SyncTweet
|
|
||||||
{
|
{
|
||||||
Acct = acct,
|
_syncTweetsPostgresDal = syncTweetsPostgresDal;
|
||||||
TweetId = tweetId,
|
}
|
||||||
PublishedAt = DateTime.UtcNow,
|
#endregion
|
||||||
Inbox = inboxUrl
|
|
||||||
};
|
protected async Task SaveSyncTweetAsync(string acct, long tweetId, string host, string inbox)
|
||||||
await _syncTweetsPostgresDal.SaveTweetAsync(tweet);
|
{
|
||||||
|
var inboxUrl = $"https://{host}/{inbox.Trim('/')}";
|
||||||
|
var tweet = new SyncTweet
|
||||||
|
{
|
||||||
|
Acct = acct,
|
||||||
|
TweetId = tweetId,
|
||||||
|
PublishedAt = DateTime.UtcNow,
|
||||||
|
Inbox = inboxUrl
|
||||||
|
};
|
||||||
|
await _syncTweetsPostgresDal.SaveTweetAsync(tweet);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue