Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9073062

Browse files
committed
fixup! coderd/database: only generate ID at database side, order messages by created_at instead of id
1 parentd784f8e commit9073062

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎coderd/database/dbauthz/dbauthz_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5341,7 +5341,8 @@ func (s *MethodTestSuite) TestChat() {
53415341
s.Run("GetChatsByOwnerID",s.Subtest(func(db database.Store,check*expects) {
53425342
u1,u1c1,_:=createChat(s.T(),db)
53435343
u1c2:=dbgen.Chat(s.T(),db, database.Chat{
5344-
OwnerID:u1.ID,
5344+
OwnerID:u1.ID,
5345+
CreatedAt:u1c1.CreatedAt.Add(time.Hour),
53455346
})
53465347
_,_,_=createChat(s.T(),db)// other user's chat
53475348
check.Args(u1.ID).Asserts(u1c2,policy.ActionRead,u1c1,policy.ActionRead).Returns([]database.Chat{u1c2,u1c1})

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp